When my wife's old crossover needed replacing a year ago, I did the math on buying her another used ICE crossover, vs a new ICE crossover, vs an EV crossover. As expected, the new ICE wasn't as good a deal as a used ICE (think Dave Ramsey's and other folks often repeated teaching of buying used cars instead of new cars). But the new EV was the best option, at least for our driving habits (25K miles per year). I'm sure it's not for others.
Part of my math on leaning EV for us is the fact that my wife and I were replacing our used cars every 7 years on average anyway. Last year, instead of about $6K or $7K to buy her another used ICE crossover, used cars had gone up to $10K (for a decent crossover in decent shape within our mileage range). If we were to pay to replace our EV's battery at today's prices (and it somehow wasn't covered under warranty), it'd be $10K to $12K. Of course, 10 years from now inflation is liable to make that more, but the same with used car prices 7 years from now. So for me, I chose to spend the cost to replace the EV's battery 10 years later instead of spending almost the same amount to buy another used ICE car 7 years later. But again, that's the math tailored to our driving habits and how quickly we put miles on a car and use it up.