I don't think you can compare a Civic to a Sonata. Different vehicle class.
Moreover, one costs almost 30% more than the other! That's a significant price gap.
Good luck with your decision.

Depends on your definiton of "costs"
Civic EX Auto in ontario
Term 60 Months
Rate 4.9
Payment 534.39
Total 32063
SONATA GLS V6 Premium in Ontario
Term 60 Months
Rate 2.9%
Payment 549.2
Total 32952
The actual difference in $ over 5 years is about 3% NOT 30
This is allcalculated at MSRP. I think you'll find Hyundai will deal at least a little (at least more than Honda). Its not unreasonable to think that you might be able to get both cars for the same $ outlay over 5 years with a little negotating.
I don't want to get into the whole resifual , maintanence thing.
$ for $ its not unreasonable to cross shop the cars at all. What amtters to many people is how much $ comes out of their bank account each month in relation to what they drive. The $s are essentially the same. You just have to weigh which car's features and pluses outweigh the other car's features and pluses.
Focusing on the MSRP is decieving in this case.
Yes, indeed.
I never meant to say that one will cost a lot more than the other per month.
Just saying that the MSRP is different by a whopping 30%. Basically agreeing with what "2hondas" said that these vehicles are in totally different class.
Again, both of these vehicles can be had for similar amount of money per month, if you're financing it over a long-time. I even said that in my very first post.
Moreover, Sonata will probably be a bit cheaper to insure, and may even costs less to maintain. Honda dealers are notorious for over-charging their customers by doing all sorts of simple "inspections."
Few questions you may need to ask yourself: Do you give a lot of rides to other people? Do you carry a lot of cargo?
Good luck!