If the kid appears in the road from behind the truck, the computer can handle slamming on the brakes very easily - probably faster than a human can - without understanding the kid any better than a group of LIDAR points or a rectangle of pixels labelled 'obstacle' by a neural network.
But if you want to brake before the kid appears from behind the truck? For that, a fully attentive human driver will be making a bunch of estimates about what the kid is doing, whether they seemed to have noticed the car, how old they were, and so on. In other words, applying a theory of mind.
Needless to say, if the latter is a must-have feature, that's a pretty hairy problem.
Of course, it's possible the decrease in deaths from being fast on the brakes in simple situations will outweigh the increase in deaths from lacking a theory of mind in complex situations. If that's the case, the self-driving car programmer's job would be a good deal simpler!