It's the "humanity as a single human body" version of slapping a kid's hand when they go to reach for a hot stove burner. Minor harm to prevent greater harm later.
Or it's the infinite trolley problem: Divert onto 5 people, or let it hit 1, but you see down the 1's track that it leads to a subsequent 5-1 trolley problem, but you see down that 1's track that it leads to a subsequent 5-1 trolley problem, but you see...
It's the "humanity as a single human body" version of slapping a kid's hand when they go to reach for a hot stove burner. Minor harm to prevent greater harm later.
Or it's the infinite trolley problem: Divert onto 5 people, or let it hit 1, but you see down the 1's track that it leads to a subsequent 5-1 trolley problem, but you see down that 1's track that it leads to a subsequent 5-1 trolley problem, but you see...