The 2023 Hyundai Elantra and the 2023 Hyundai Sonata are both terrific sedans that ride comfortably and have a host of enjoyable features. For better fuel economy and handling, go with the Elantra. However, if you want more passenger and cargo space, the Sonata is a better choice.