The tram dilemma in the 21st century

In 1978, the British philosopher Philippa Foot posed an imaginary situation in which we become the driver of a tram that has lost its brakes and cannot stop. Further on, on the tracks, there are five people working. The tram is about to run over them, but we notice that a change of tracks is coming and we only have to pull a lever to do it. However, on these new routes there is a person working. In both options, there will be fatalities. Faced with this situation, the philosopher asks what is the correct decision: pull the lever and change tracks (and kill one) or do nothing (and allow five to die). In general, the vast majority of people choose the first option.