I bought my Elantra new and have had no major mechanical issues. I've had to replace brake pads once and front headlights twice (which the dealer replaced at no expense to me). My only complaint is that it is very noisy inside (road noise), but overall, am very satisfied with its performance.
† Edmunds.com received the highest numerical score in the proprietary J.D. Power 2014 Third-Party Automotive Website Evaluation Study℠. Results based on responses from 3,381 responses, measuring 14 companies and measures third-party automotive website usefulness among new and used vehicle shoppers. Proprietary study results are based on experiences and perceptions of owners surveyed from January 2014. Your experiences may vary. Visit jdpower.com.