There was no danger to life in this scenario. It’s not for the car to figure out how to “not do this”, it’s for you.
It doesn't auto-brake but does do a good job of avoiding such impacts by alerting to objects nearby you might not see, including cross-traffic detection when backing out of parking spaces.