I don't think having a default response of standing on the brake regardless of the circumstance is the best response. I have no idea whether or not you were far enough away to brake successfully -- it sounds like maybe you didn't at the time either. But if you evaded a collision then you 100% made the right choice.
The only collision that was ever my fault was from sliding attempting to brake in wet conditions. If I had attempted to maneuver, I maybe would have avoided it.
This seems like a weird construct, particularly given that minors do such stupid things. Two of them, together, literally ran into traffic, and the default is "blame traffic"?
For most of history it was very normal for people to run in to the street. It was a place for horses, carts, donkeys, people, and livestock, and more than that, it was a place for socializing _and_ transport _and_ commerce.
Then, a few wealthy folks showed up in their automobiles and said "GET OUT OF MY WAY OR I WILL KILL YOU" and oddly, we sided with them.
https://www.citylab.com/transportation/2012/04/invention-jay... has more.
The advice given to children here is "don't cross at the front of a bus, always behind it". That and "look right, left, and right again".