If you wear a seatbelt and eschew the most risky driving behaviors your chances of getting in a crash where the difference between 2005 and 2025 matters are very, very, very, small.
some are, sure - but most aren’t. Plenty of well maintained clean 2010 model cars on marketplace and Craigslist for well under 10k.
Plus they have tons more auxiliary safety features like lane departure warning, forward collision warning, blind spot detection, better visibility, etc. And they are roomier, have more power, get better gas mileage, and have backup cameras and Apple CarPlay!