How do you use prefer in comparison?
Expressing preference
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.
Would prefer infinitive or gerund?
When we use would or 'd with hate, like, love, prefer, we use the to-infinitive, not the -ing form: We would love to hear you sing.