With hydrogen there will always be a hard limit on how much volume/weight you will have to drag along for a race distance, plus storage is either very complicated or large (possibly both). With the ongoing development in batteries and fast charging, this path has more possibilities in being a solution in the not so distant future.
Fuel cells are one of those things that keeps coming up whenever a company bets on electric power, almost like a way to say “I won’t invest in battery power because the real solution is fuel cells, so I’m sticking to my petrol engine”.