What you're saying is not a capability that even most commercially available automatic braking systems can do well. Several studies have pitted the half-dozen or so cars available with automatic emergency braking systems on them, and they've all been just about the same. Apologies for a lack of citations on this since I have to run, but we at least have to compare Tesla to the rest of the industry, or compare their actual AV solution (FSD, which is in limited beta and only has been for just a month or two).