Always 1.
EZ unless you engage with it emotionally like you might irl. But I'd try not to do that in real life.
It's not a question of emotional engagement as much as it is of distancing yourself from one principle in favor of another.
The 1 person/5 person train track dilemma can be handily solved by going with the principle of charity - do good for the maximum number of people. The mob variant complicates it because doing the maximum good requires violating the principles of justice. You're not just killing a person, you are killing a person who doesn't deserve it for a crime someone else committed, whatever the reason, which is a gross miscarriage of justice even if it saves people.
I had a fun text about euthanasia that I read today in much the same way, it mentioned an imaginary situation that highlighted the difference between inaction and action:
Imagine two men, Smith and John. They each have a 6-year-old cousin that happens to be the heiress to a massive fortune. If she were to die, their guardian would receive the fortune and become a very rich man.
Smith is the guardian. While his cousin is taking a bath, he walks into the room and drowns her in the bathtub, and cleans up any evidence to make it look like a complete accident, and gets away with it and the massive fortune.
John is the guardian. While his cousin is taking a bath, he walks into the room with the intent of drowning her in the bathtub, but the cousin is startled as he enters and slips, banging her head on the wall and falling into the water face-down. John is prepared to push her head underwater if she stirs, but this proves unnecessary and his cousin drowns in what looks like a complete accident. John is very satisfied and gets away with a massive fortune out of it.
Did John act less reprehensibly than Smith or vice versa? Are their crimes possibly equivalent? One of the retorts to this was that they are indeed both unquestionably immoral, but for different reasons - Smith acted unjustly, as he had no right to drown a six-year-old girl in a bathtub, while John acted uncharitably, as he made no effort to help a six-year-old girl when it would have made all the difference.