We use prefer to say we like one thing or activity more than another. We can use a prepositional phrase with to when we compare two things or actions:
I prefer tea to coffee.
We prefer going by ferry to flying.
We don’t use than after prefer:
She prefers books to magazines.
Not: She prefers books than magazines.
We can use a to-infinitive or an -ing form after prefer. A to-infinitive is more common.
She’s not keen on coffee. She prefers to drink tea. (or She prefersdrinking tea to coffee.)