This isn't true. High speed rail is alive and well in Europe. Geography, politics and history are all significant factors that you can't explain so easily.
> the advent of self driving and electric cars will doom them regardless
Highly speculative. Nothing beats rail for capacity to move a lot of people around quickly.
> So rail is more of a benefit for the well to do
Quite the opposite.