The batteries do contain rare minerals like lithium but these can be recovered and recycled. EVs can be charged with solar, wind and other renewables even tho many places in the USA still burn coal or natural gas.
Once you burn gasoline in your ICE vehicle then it’s gone, it turns into gasses that go into the atmosphere and can’t easily be recovered into anything of much use.
EVs are the future and we all know it. Gasoline will continue to become more expensive and more difficult to extract.