I work with AI and Machine Learning every day. The goal is to avoid the crash with any object regardless of what the object is. Because if you hit a vehicle versus a person you may actually cause more deaths and injuries because the vehicle you hit plows into a crowd. Unintended consequences are very difficult to predict.
Indeed, but I do hope the AI can take a good guess at what it's seeing, as, even the most perfect system, may need, at some point, to decide the best of two worse scenarios.
And how solid something is. Tree trunk, Brick Wall, Softer Hedge.
If a child runs into the street from between parked cars with no time to stop (perhaps wet road) Veering into the hedge to avoid the child would seem to be the better option.