Can you say:
I definitely prefer the heat over the cold/coldness.
Are both okay here?
You might hear a native say it.
I prefer heat to cold.
I prefer hot weather to cold.
I prefer the heat to the cold.
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.
We often use parallel terms, such as 'the heat' and 'the cold'.
Why aren't you suggesting, "I prefer the hotness over the coldness"? (No, I don't recommend that. Can you say it? - of course!).