The battery is the achilles' heel of EV's. An ICE engine can last 20+ years if you take care of it. An EV needs a battery replacement at the tune of $10K+ after 10 years at best. I think once they make longer lasting and/or cheaper batteries, this difference will level out.
FWIW I drive a Toyota ICE and fully expect it to last to 200K+ miles and 20 years. If I decide to trade it, it would keep a heck of a lot of its value vs a Tesla. Those things depreciate like produce.