But, I do know, if it's me on the track, I don't want to die. It's almost the only truly inarguable choice. With everything else, you think you know best for other people. With that one, you just know you don't want to die.
Most of us will be scared shitless if we were in that situation, and I'm pretty sure the majority (me included) will act as a coward. But nobody would blame them, because we all know we would likely have done the same.
But on the other hand, we praise the heroes who sacrifice themselves because we recognize that they did the right thing, no matter how much it costed them.
A solipsistic view might say that those people are part of our own consciousness. If we let them die, we continue to exist. If we sacrifice ourselves, all of us cease to exist since they are just manifestations of our consciousness. As Christopher Hitchens once said, beware of solipsism...
On the other hand, how many people would you need to save to sacrifice yourself? 5? 2? 1? Does that one person need to be younger than you? Not disabled? Not a criminal?
An equally compelling principle might be that the only person I know to be worth saving is myself.
I find this answer really interesting, because in the entire corpus, this was the most morally unambiguous question of all, and the answer is diametrically opposed to yours.
Would have I the courage to do so in real life, I don't know, and it's probable that I would not. But from a moral perspective it's damn clear: the only people I am unambiguously allowed to kill to save someone else is myself. Killing someone to save someone else is a moral dilemma as it makes me take someone's life, but killing myself isn't.