I see that you are going to lease the car. So I take it you wont keep it after the lease. So I would go with the sonata. Just because its cheaper and you get alot of options. Now if you are going to buy the car at the end of the lease I would go with the Mazda.
Good luck