I realize I set myself up for this focus on the worst case by digging for a third example and then tossing in the trivia about corporal punishment, but to be very clear: ability grouping doesn't work like this. not by statute, not by case law, not in actual practice. it is legal https://x.com/ChrisExpTheNews/status/1935651304015057267
honors classes exist. AP classes exist. selective schools exist. charters that group primarily by ability over age exist.
you have to have a legitimate academic purpose for the grouping, but since it's a sound pedagogical practice, that's fine. it's both legal and practiced.
"the legal system as a whole will..."
people can sue over anything. if those lawsuits are meritless, they get tossed out quickly. they never reach a jury. statutes and case law matter. when you say a thing is illegal when it is in fact legal, you are leading people wrong.