Hyundai.
If you were talking about a '99 Sonata vs. a '95 Camry, I might go for the Camry. But the Sonata has been a great car since about 2006 so there's no need to pay the Toyota tax.
I'd probably prefer the Sonata (being four years newer), but drive them both first and see what you think.