With 'prefer', English pairs the two options using 'to', never 'than'. The structure is 'prefer one thing to another'.
- apples to oranges is correct because the idiom 'prefer X to Y' governs this comparison.
- apples or oranges only presents alternatives, not a preference.
- apples and oranges links the fruits without ranking them.
- apples of oranges produces a meaningless phrase.
Hence 'apples to oranges' is the answer.