What is measured is what gets done. If schools are judged by graduation rates, then yes, fewer scientists but more people graduating highschool. Or we go the other way and judge schools by how many elite scientists they produce. Identify the best students early. Give them everything so that they can all become neuroscientists. Abandon all those who struggle in order to focus resources on the future doctors. Imho a public school should only start diverting resources to elite students once the school has achieved a reasonable graduation rate (90+% imho.)
I can see how that would help with the feelgoods, but how will this advance science and technology? The very things that allow you (and me) to be here pontificating about this instead of sustenance farming.
Apparently, the measure was not to "cancel advanced classes", but to replace advanced algebra by something more challenging, more engaging and developing more the scientific brain of student (in this case, advanced data science).
It looks like a lot of people who are screaming at the end of science haven't even realized the problem may just be in their head.