Fossil fuel electricity is more expensive than wind and solar. Even the most expensive solar, residential, is cheaper than buying from a dirty grid for the vast majority of customers. And the intermittent nature of solar and wind is a perfect match for charging a fleet of EVs.
In contrast, green hydrogen is nowhere near as cheap as fossil fuel hydrogen from steam methane reformation. The dirty secret that no hydrogen fan talks about is that "blue hydrogen" the bridge to green hydrogen, requires carbon capture technology that does not currently exist at scale. And it requires transporting CO2 back to some sequestration site, doubling the amount of transportation of gasses.