One of my friends went to a school where she was beaten every day and the teachers had totally given up and most of them did not teach.
Unfortunately, we need much more data than we have. The article mentions school quality is often not the driving reason for homeschooling, but you can definitely imagine public schools where almost any level of homeschooling is a better alternative.
[1] https://foxbaltimore.com/news/project-baltimore/state-test-r....
My children are in public school, but I am not sure if they will stay there. Even in "good" schools, there's many problems (especially in middle schools) and a lot of time is wasted if your kids have any academic ability at all.