The main constraint now on car longevity is going to be the circuitry and all the electronic modules. Those expire with time and need to be replaced, and they are the same for EV and ICE, I'd wager that EVs have much more. Thermal stresses, vibrations, capacitors degrade over time, there is corrosion from moisture, etc. How many years do you think all those Tesla boards will last? I would worry about them more than the battery, which has proven to be very durable, and long term we will find ways of servicing these batteries without requiring replacements. Or at least, some manufacturers will, and smart consumers will buy from them. Just think of the problems a 20 year old computer has, one that has been used for an hour a day for 20 years. Now imagine one constantly vibrating, left outside in the sun and rain, etc. What would be the survival rate of that board over 20 years? Not good.
What we all need is an open source car for the electronics, as well as right to repair laws. That is probably the most important thing needed to keep cars on the road.