Would rather…than多与动词原形搭配,例如:
I would rather drink juice than soda.
I would rather go out than stay home.
Prefer…to多与名词和动名词搭配,例如:
I prefer juice to soda.
I prefer going out to staying home.
Reference
Teo, Alvin. 2019. Confusing Grammar Explained. Singapore: Marshall Cavendish Education.