Lets clarify things a bit.
1) Out of the tests on the internet I found out I would not change the switch, but only marginally so.
2) Out of the test on killing it shows I always think killing is not a moral choice, no matter what the result.
Now the real issues I have with what you call logic:
It's five, 35 year old, unemployed, career benefits scroungers who are shouting expletives at you - and the one is a direct relative of yours who you love dearly.
This is why logic is not subjective and there's no such thing as "my" logic. It's according to your feelings that five people are more than one person based on the assumption that all people are of equal value and equal potential, despite the fact that they aren't and without an objective metric to reach that conclusion.
Since:
1) it is a human right to be seen as an individual.
2) since you have no objective metric to reach a conclusion that one is more then the any other
5 is more worth that 1. That is logic.
Not assuming that all people are of equal value and equal potential is called discrimination. I'm not saying that discrimination is not something that happens and can be moral (in competitive advantage etc...), it has no place in judging human rights and mostly the arguments used for discrimination are incorrect (nationalist movements in the past and current, apartheid, etc...).
It's actions that cause others to come to harm that are immoral.
No it is not.
Actions = responsibility
Actions and Results = morality
It is more moral (=good) to be a hero, but you have no responsibility to be a hero.
If you do not act, all die but not from your actions. You are not to blame. If you act, some still die but not from your actions. You are not to blame. If you choose a different action, some still die but not from your actions. You are not to blame.
....
So what's the problem in your unrealistic situation?
The case was just to prove this: "You do not get it"
What you talk about is responsibility and you are fully correct on what you say in the frame of responsibility. You can express this in black and white.
Moral is about what is what is good and bad, what a society accepts, it is a lot more about different shades then it is about black and white. My world is not black and white. Morality is not about responsibility it goes above that.
Moral questions are:
Is it good to exclude people from treatement (this is discrimination)?
Is it good to work on first come first served basis and let more people die then with other criteria?
These questions do not handle: are you responsible for them dying.
That is why the killing (a clear immoral act) is irrelevant on judging the other action as moral or not.