Current operation of a train is basically self-driving and supervising driver. So if you suggest "just use self-driving", you make the system less safe, not more, because it means just getting rid of the human supervisor. This is not currently done, because it would be too insecure. It might be done in the future, but rather because less safety is going to be accepted in favor for getting rid of the costly human.
A self-driving train will happily cause a crash, if the target is "drive with high-speed in that segment currently occupied by another train". The issue is that that becomes a target, not that there is a human in the loop.
I don't think that's relevant to trains. Cars can avoid a collision much more easily than trains can. Cars can swerve, and if they are at a distance at which line of sight tells them they will hit an obstacle, they are moving slow enough to stop before hitting that obstacle. Trains have to stay on tracks, and they need up to 4 kilometers to stop moving.
The constraints are very different, so the solutions and tradeoffs will be different too.