Anecdata: as a regular commuter on the east coast main line in the UK for several years, a very common source of service interruption was blamed on overhead cable problems.
From an engineering perspective the complication of the track electrical infrastructure and pantograph seem inferior to a hydrogen tank and fuel cells. Far less actual stuff to build and maintain.