I can't pick and choose lives. But I could divert the train and quickly untie the fourth persons ropes.
If I couldn't make it in time, then that's that. At least I tried and successfully saved three people.
I did my part and my morality/conscious is in tact.