Re: the error is in call it "AI" !!!
Perhaps one day but we simply do not have systems that 'know' a ball may be followed by a child. That particular scenario may well be currently 'coded' for but even recognising a ball is a tough task in many conditions (for machines that is).
We have not crossed (and may never cross) the threshold where the machine 'thinks' such that it can determine actions well in new situations dissimilar to previous ones.
It is true that a future system (including the car, other cars, roads, traffic lights, 'bend sensors' (tm)) may well yet make us incapable of killing ourselves or others with vehicles.
But not yet and not for some time.