The spark (ignition) energy is very important safety wise. Nothing will light without an ignition source. In fact hydrogen is more dangerous wrt to gasoline than gasoline is wrt to flour (yes, flour can explode). That is:
Flour:gasoline < gasoline:hydrogen
Hydrogen is dangerous. And that’s fine.
Instead, liquid flammables can leak around and then ignite.
https://www.computerworld.com/article/2852323/heres-why-hydr...
https://hydrogen.wsu.edu/2017/03/17/so-just-how-dangerous-is...
Both are explosive, so I think (I'm no authority on this) we can compare those values directly, without taking into account the storage pressure.
Source: https://hypertextbook.com/facts/2005/MichelleFung.shtml https://hypertextbook.com/facts/2003/ArthurGolnik.shtml
A 10k PSI H2 tank is a straight up bomb. A gasoline tank can start a nasty fire but nobody is going to be torn apart by shrapnel or killed by the overpressure wave in an accident. Gasoline cars don't explode like they do in the movies. It must also be noted that the large batteries in EVs are also a fire hazard and in some ways worse than gasoline. For gasoline to act like a bomb it has to be aerosolized first and then ignited. In an accident there's not much that could achieve that. With a high pressure H2 tank something that cracked it open and allowed all of the H2 to be released at once would instantly create the conditions for a massive explosion. All it would need is a single spark.