I prefer to swim than drive.
I prefer to eat than drink.
He prefers to write letters than send emails.
I choose to swim rather than drive.
If I were to use "rather", then I would use it in place of "prefer".
I would rather swim than drive.
I would rather eat than drink.
He would rather write a letter than send an email.