Earlier quoted context omitted.
I hope you are misremembering. Swerving is most often the wrong choice, and I would be disappointed if Waymo were opting for that. By far the best option is to panic stop. Human or robot, physics is a harsh mistress and swerving is more likely to make you lose control and end up in a much more unforgiving wreck.
This depends a huge amount on car, driver and situation. It was the right advice for a learner driver in the 90s with no stability control, no experience and no side airbags, because if you’re going to hit something, hitting it front on is the least risky way. I’m not convinced it’s the right advice for a competent driver in a modern vehicle.
Also, in the case of someone running a stop sign, it is far from a sure bet they are going to hit their brakes at all, so by swerving you increase the odds that you will still hit them, but now it will be while you have exhausted all your adhesion on lateral control. So now instead of a front end collision with all the benefits of airbags and crumple zones, you are at a significant risk of rolling the car or spinning off the road and hitting something immovable with a part of your car lacking crumple zones.