I recently learned of a new perspective when talking to a lawyer and learning of his first reaction. Apparently here in Germany courts assume a certain degree of responsibility for an accident by you simply deciding to drive. So if there is a crash of two cars, it starts with a 50/50 culpability and the circumstances (who crashed into whom because of what) decide the final accountability. The argument is that you knowingly stepped into something with very well known dangers. You took a risk when stepping into a weapon.
The child didnt take any such decisions. As such you could (in theory) make the argument for suicide programming in such situations.
I only mention it because despite having talked about the scenario in university, this perspective never came up.