That's a ton of assumptions that I think do not hold any real water. The smartest car purchase for most urban or suburban commuters in the US (and likely most other car dependent countries) is a used EV. The best ones have heavily depreciated because of the top 10% churning their cars, they have 80-90% of their battery range (which most people don't even need), and they cost almost nothing to own and operate.
I would argue no one should be buying a car with the intention of selling it later, because all cars depreciate terribly (COVID was a very unique circumstance).
The warranty does not care about the value of the car, it's only for parts and repair so what you said doesn't make any sense.
Your other point is if you buy a depreciating asset with a loan and then lose your income you'll have a hard time paying off that loan. That's literally true for everything in the world. No one should be buying a car they can't afford, and definitely not with a loan they can't safely afford. There's always refinancing which would in your hypothetical would always be a better move as again the ongoing cost of an EV is something like 1/6th or 1/10th of a gas car.
I think you're giving terrible advice and have been given very bad information.