The newer the car, the more it costs for insurance and property tax. (Some states do not have property tax on cars. Ours does.) New cars depreciate significantly as you drive them off the lot. So, if your health deteriorates quickly to a point where you cannot drive, you would never get back what you paid for the new car. We haven't purchased a new vehicle for decades. I drive my trucks to 150,000 and then find one with 10,000 to 12,000 on them. They are just like new, but someone else has taken the depreciation hit.
I'm not a fan of purchasing new cars. It's IMHO, tossing money down a rat hole. A 7 year old vehicle with only 23,000 miles should still be reliable. If you worry about the reliability issue there are a couple of options. You could probably buy an extended warranty at your local Hyundai dealer. I'm not a big fan of extended warranties, but you would spend far less than on a new vehicle. Just make sure you purchase such a warranty from the dealer and not from some scam organization on the internet or that send you advertisements in the mail. The other option is to keep a AAA account active. AAA will give you some towing coverage and other protections.