Electric cars will be the future this is clear, but at the moment they are expensive and in case you need to replace some parts for example the windshield is 5-10 times more expensive than for a classic car, at least in the case of Tesla model 3 changing the windshield costs over 1000 Euro.
But you are not going to pay for it right unless you don't have Insurance for your car.

Look at the maintenance cost not the spare parts.