Centralized and decentralized is cyclical. The fact we're building new nuclear plants to sustain them is the silver lining. When we realize it yet again, we will still need the power.
Can't tell if you're joking or not, but in case you're not, here's an EU survey of rolling stock which says that it should last 25-30 years and represents only 1/5th of the cost of the rail network: https://www.europarl.europa.eu/RegData/etudes/STUD/2023/7472...
Hints: I hope you like your electric bill doubled