“I have never seen a good cost breakdown of electric vs. gas powered cars.”
And you probably won’t.
A huge amount of the “value” is in the battery pack. Until the lifetime is better understood, plus any recyclability value, the numbers remain unknown.