Jacob He loved, Esau He hated.
Yes, that's exactly what God does.
But unlike us, He is perfectly discriminating, perfectly just, omniscient, and outside of time.
God can and will do exactly as He pleases, and will be perfect and perfectly just in doing so.