Remove the ability to compete in math because you are poor and cannot enroll in private school. Don't allow the poor to do algebra? I left SF (and took my poor kids with me).
However, the SF policy that was truly evil to the poor was randomized school selection. Tell a poor kid in western addition they need to go to school in pacific heights. Tell the pacific heights kids they need to go to school in western addition. So what happens? The poor kids miss school (a lot) since their parents are working crappy jobs for rich people and can't do bus commutes each day. The pacific heights parents just enroll in private school. So tons of schools in SF just close. Awesome work SF. I am confident if you do the exact opposite in all SF policies you would have a great city.