The used car market will still go strong for years to come. Few people will be forced to buy an EV until probably at least 2040-2050.
Get your new gas car in 2034, drive it for ten years, probably be able to pick up a lower mileage used one in 2045 drive it for another 5 years. Buy an EV in 2050 when all the kinks and infrastructure has been ironed out.