It’s not just about efficiency. Photosynthesis is inefficient at 30% sunlight, solar panels are worse at less than 20% sunlight energy. Wind and solar are dependent on weather. Tidal, like all forms of energy production, have environmental impacts too. Recycling solar panels and lithium batteries are possible, but not really done at scale yet - and back to energy needs and pollution. All this is in its infancy. Primary goals are moving pollution out of cities and lowering carbon dioxide and methane levels from the atmosphere, while maintaining the absurdity of car production and encouraging travel and 'buying things' and population growth.
Hydrogen has the potential for storing spare renewable generated power, fast refuelling and less vehicle weight.
Dangers? Yes, but remember Buncefield, chernobyl, think what would happen if a warehouse of BEV batteries went up or indeed a traffic jam of Teslas on the M25. The thing is to accept there is a learning curve from the engineering viewpoint to improve efficiencies and mitigate disasters.