The dilemma prompted by the children who roll in front of the car is a variation on the famous (or notorious) "trolley problem" in philosophy. A train (or tram, or trolley) is hurtling down a track.
The Trolley Problem is a famous thought experiment, devised by the philosopher Philippa Foot in 1967, which makes you consider this question. Five workers are standing on a track. Heading towards ...