See
Prefer - English Grammar Today - Cambridge DictionaryExpressing preference
I prefer tea to coffee
We prefer going by ferry to flying
She prefers books to 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 prefers drinking tea to coffee.)
Would prefer
I'd prefer to go by myself
Would you prefer tea or coffee?
Would you prefer a quieter restaurant?
She'd prefer not to drive at night.