If looking new, plan on keeping it a long time because as said, re-sale sucks. You can pick up a year old Elantra for about $5,000 less than new.
I am very happy with mine, and went into it knowing I was keeping the car for many years. For $15k, I got a 4 speed automatic, A/C, power windows, locks, tilt, cruise, power moonroof, keyless entry/alarm, ABS/TCS, MP3 radio/CD, fog lights, 4 wheel disk brakes,leather seats, rear window/mirror defrost, 60k/5yr bumper to bumper and 100k/10 yr powertrain warranty with 5 yr unlimited mileage roadside assistance. It is available in a 4 door or a hatchback.
I get an average of 33mpg with mostly highway, some stop and go traffic. On the highway I can get 41 mpg @ 55mph. Worst I have had is almost all around town with A/C on @ 26mpg.
Hyundai is a growing company and is still working the bugs out, but take a look at the new Sonata, it is every bit as nice as an Accord but several thousand cheaper with more options on it, although it still needs to have time to prove itself, it is an all new car with very high marks.