Build a school. Call it the school of equality. Only send the smartest there. As your kid gets smarter, he is taken out of school and sent to the school of equality.
This way the smart kid is ostracized by his peers, he goes to a school where his peers are equal to him and he doesnt get ostracized and everyone wins.
what you described is what is known in many cities as “public education” in the U.S.