Any way to get hydrogen can generate electricity, usually more efficiently.
Electricity is easier to generate, distribute, and store than hydrogen.
Fuel cell cars also need batteries because they're not able to deliver large bursts of energy.
Maybe hydrogen / fuel cells might be better for very large mobile applications (ships / trucks / trains) but that's an open question.
They're no a reasonable alternative to BEVs. If anything, hybrid cars are the CFL, having all the drawbacks of both modes and few of the advantages of either (the ability to refuel quickly from anywhere with gas stations is the sole selling point, and it is a big one).