if you are considering the sedan, first check out the elantra, price is almost the same.
get more for your $$$
When I was shopping to replace the 2010 accent. the 2020 accent was 14.8k stripped
I ended up with a loaded "value edition" 2020 elantra for 15.2k IIRC. after additional incentives the elantra had.
has emergency braking, lane keep assist, sunroof, heated seats, carplay/android auto, alloy wheels. 4 wheel disc brakes.
and a bunch more stuff.
now in hatchbacks the elantra hatchback is overpriced and the accent hatchback value is better. vs shopping the 2 sedans.
.. Some models of the elantra are available with a very reliable port injected(not gdi) atkinson cycle 2.0,