Going directly to batteries is far more efficent. Going from power to hydrogen is incredibly inefficent. So at least not as much energy needs to be produced.