If a car is needed it depends how you're planning to power it.
This answer[0] does a great job of looking at the energy inputs of building a car. I thought the up-front cost would be higher but the emissions from producing a car are comparable to the emissions of using the car for a few years.
So if the choice is between a used ICE car and a new EV and charging it with renewable energy, it's (surprisingly) probably worth buying the new EV.
If you're planning to charge it with power from a coal plant though you should probably get the used ICE car.
[0] https://www.quora.com/How-much-energy-is-required-to-build-a... [1] https://ecf.com/news-and-events/news/how-much-co2-does-cycli...