The Honda needs about $1k of maintenance done while the Sonata will need about $100. Two open recalls for the Sonata so be sure to have those done.
https://www.carcomplaints.com/Hyundai/Sonata/2009/recalls/
https://www.carcomplaints.com/Hyundai/Sonata/2009/recalls/