I'd pick a Sonata but this is really a preference thing. The Jolion has more tech and features, but personally I REALLY enjoy the 2.5 liter NA engine with its immense low end torque. Keep in mind that the Sonata is running on really thin low profile tyres due to its big wheels which makes you feel everything on the road, so if you are often traveling on broken roads the Jolion will give you more comfort.
If you don't have much use for the back seats by often traveling with 2 or fewer I would probably suggest the Jolion too though, the running costs are most likely cheaper and a new car has its own charm.