For both dilemmas, a person who won’t touch that switch or won’t push anyone is legally innocent. There’s no way he’ll have to go to the court, while the organizer[s] of those experiments will be charged with a 1st degree murder and found guilty.
OTOH, a person who will switch those rails or push an innocent will be charged with a murder of that 1 person she killed, and I’m seriously doubt any jury will find the suspect not guilty.
Drunk people don’t realize legal consequences of their [in]action. That’s why they conclude saving 5 people justifies killing the 1.