Reduce, reuse, repair, recycle. Vehicles should be reduced first (drive less), reused second (keep using existing one), repaired (keep using existing ones), and finally you can recycle as best as possible.
All of this should happen prior to replacement. If you replace an existing ICE with an EV, the EV not only has to catch up with a new ICE, it actually has to "catch up" with your existing already made working ICE that has no new cost for construction. That's much worse than 20k miles because the cost of building your existing car is sunk. It could take as many as 50,000 miles of driving to break even against your existing used car.
Consumerism and early replacement of working goods has always been the mortal enemy of environmentalism.