I wouldn't touch a Hyundai even if it was given to me. Quality and refinement is not up to par despite what their commercials want you to think. Plus Hyundai over-rates their engines' outputs consistently.
The Subie's tranny isn't as weak as most make it out to be, though. But start modding it then boom boom.
And if you love torque steer, then you'll love the MS3. My mom has a 2009 Mazda3 hatch with over 75k miles on it and the only work needed on it was the power steering recall. But if you like your cold A/C, then walk away because the Mazda3 has the worst in the business.