The Elantra is a compact that split its reputation clean in half at 2021, before that line, you're shopping engines that seize and cars thieves steal with USB cables; after it, you're getting a genuinely competitive sedan with sharp looks and a warranty that backs the turnaround. The 2021-up cars deliver on value and the hybrid hits 40+ mpg without trying, but pre-2021 models carry catastrophic engine failure risk (Theta II bearing seizures, oil consumption) and the 2017-2021s remain theft-prone even post-recall. Buy 2021 or newer if the price works and you want modern features without the baggage; anything older is a gamble best left to someone else.
This asymmetric three-door splits into two personalities: buy the base 2.0L and you get a buzzy economy car that looks quick but drives like it's apologizing, while the Turbo and especially the N deliver genuine hot-hatch thrills that embarrass cars twice the price. The 2013s grenaded engines with rod knock and bearing failures, avoid completely. Later first-gen models (2015+) and the second-gen (2019-2021, now discontinued) are far more solid, but every year suffers from comically persistent horn failures that need replacement after replacement, even under warranty. If you're considering a 2015+ Turbo or any N, commit to 4,000-mile oil changes and accept the horn lottery, you'll get a legitimately fun driver's car for used Civic money. Skip the base model unless you need cheap transport and nothing more.