Where society here and now should invest, what direction to go from from here, is totally up to us. What makes the most sense - preferably in the long run.
Cars are pretty shitty for long distances. Rubber tyres wear down the road and create unhealthy dust, way more friction and noise than metalwheel on rail. And they can be directly powered with electricity.
Not carry a heavy battery around and waste energy with charging and discharging.
Or well, have the noise and dirt of combustion engines.
Those are all pretty strong arguments to invest at least equally into a well functioning train network.
Every car that can be replaced with a train (in the simple often case of a person riding the train not moving his vehicel for himself) is a net profit for society. Cleaner air. Less or allmost no pollution.
(The electric trains here next to my home are really silent and still fast)
Personally I think this is having our priorities very wrong.
(I also think that rail as a primary mean of transport over roads is totally unrealistic and impractical, but that another issue)