What needs to be considered is cradle to grave usage. Including necessary support infrastructure.
The reason evs are so damn expensive is not because the people making them are mean, it is because they use more rare, more expensive materials than a regular vehicle. These require extra resources to acquire and dispose of. Ever see a photo of a lithium mine?
Copper, cobalt, lithium, niodynium, etc. Those elements don't just pop out of the ground for free in a refined state.
It requires significantly more resource input to make an EV. Then you wind up with a heavier vehicle that has shorter range. You use extra energy and do extra road damage. And it has a shorter lifetime too.
The truth is that if EVs were actually better, for-profit trucking companies would be buying them WITHOUT mandates.
The notional that we have or will have a bunch of extra clean electrical grid power laying around at any point soon is also delusional nonsense.
If we had extra green electricity, we'd be asking people to switch to electric heat.
Think about a corner gas station. All it really needs is a few tanks and some small pumps, and it can service thousands of vehicles a day, which only need to be refilled roughly once a week. An EV charging station needs a huge electrical feed, huge transformers, can service many fewer vehicles per day AND those vehicles need to be serviced more often. That means more driving to charging stations, and more stations needed.