The resale value is affected by the pace of innovation, just like cell phones. However, in commercial use cases the life of gas cars is shorter. Police or Uber constant stop and go driving are two examples that stress transmissions and engines. If you use it till it dies (not worth fixing) EV are cheaper. But yes if you buy a new car every 3 years, drive under 15,000 miles a years then the economics shift to gas. Last point US consumers do not purchase vehicles to optimize cost. Look at purchase behavior of 4 wheel drive SUVs and trucks where the higher cost features are never used.