Depends on the book or movie but overall... Books.
Reasons:
I can enjoy them with less distraction to myself and/or others in more places as they only require my sight to be occupied and not my hearing and sight.
It’s usually easier for me to get lost in a book as I am not concerned with how the actors/directors/crew were able to get a particular scene or shot to work.
I don’t have to worry about hearing that one line that an actor with a terrible feigned accent said too low or that the dramatic and poorly mixed sound blocked out.
Depending on the book, it provokes me to extend my vocabulary in a functional way. It doesn’t provoke me to use “big words” or “slang”... more often, it provides understanding of the situational context in which that language would be most effective.... Teaching restraint and responsibility with word choice and elegant prose over verbosity and grandiose speech.
I also feel like books more often provide a more intimate look into the authors (writers) intent, as opposed to the directors intent. Whether it is fact or fiction, my time is important and expensive. Figuratively, I want to get what I am paying for.
Here lately, most movies are overhyped to me and while the scenes, actors, and cgi... can be eye pleasing the mind numbing aspects often overtake the thought provoking aspects. For whatever reason, the longer lasting after thoughts of substance that make me revisit and critically think about various scenarios are more pleasing to me than the short term endorphins... if that makes any sense to you.
If I need to take a break or pick up where I left off, I’ve found it that convenient to do with a book than a movie.
In defense of movies though, it’s more difficult to engage while interacting with books socially, and in general, people reference and meme movies and tv more than books. Movies also deliver information quicker than books and like the saying goes... A picture is worth a thousand words. I just feel like well written books are just able to describe more about what the senses (feel, touch, smell, thoughts) are experiencing at any given moment than a movie could ever get close to by creating a desire to have the rest of those words the picture discounted.