Hydrogen vs. Battery Electric Cars

Wouldn’t you still need to increase the total electricity generation capacity on the grid for fuel cell EVs? Either you’re using electrolysis (which uses electricity) or you’re using non renewables to make the hydrogen, which defeats the purpose.  Arguably you’d need more generation capacity with FCEVs compared to BEVs when you consider all of the losses.