Both sound like all around
Both sound like all around good cars. Personally I tend to lean toward the one that makes me feel like a better version of myself when thrown into the mix of traffic. Be it city or highway I'm known by family and close friends as one that enhances the whole experience of travel.
It has always been my premise that I should be no more unsafe in a vehicle than I am on my own feet. For this I have to be nimble rather than fast, stable without feeling glued down etc. I'm the one that truly enjoys driving despite inconveniences or gridlock. I try to always find creative and fun stuff to do when behind the wheel w/o being obvious, just noticeable in a positive way. Too many people exhibit body lingo that says ' just lets get this drudgery over with soon' and they are the ones with a death grip on the wheel.
I go with the Sonata for these personal reasons as well as a preference for a spirited turbo. You have to know how to engage in a turbo without sacrificing mileage. I do however prefer driving a multi speed manual stick shift if this Hyundai was available as such. Yes, the overall look in and out are also important.