"Prefer tea to coffee" is fairly uncommon but it works
"I prefer tea rather than coffee" works well, sort of implies a (small) preference against coffee
"I prefer tea over coffee." - both are good,...