That's why the sensible buy their EV second hand. I got a 1 year old demonstrator with low miles (3500 on the clock) for 30% less than buying a brand new one.
With an OBD dongle to check the true state of the battery, it's not a risky proposition, and the 7 year warranty on the car and 8 year warranty on the battery means I have some peace of mind.
Much harder to model but I’d assume quite important to consider.