Of course, this could be construed as "discrimination" against the better off, since they have to go through what seems like a tough time "just because of the poor people".
I really recommend watching the film "The Killing Fields", in order to see this in action.
Both the USSR and China ended up abandoning these efforts and now acknowledge them as terrible failures. The Khmer Rouge had to be forced out via military invasion.
Always the justification is the fact that smarter parents tend to have smarter kids, patient parents tend to have patient kids, etc. E.g. most things in life are at least half heritable, and so you will see both competency and dysfunction cluster in families. This offended the levelers greatly and so they decided that families need to be broken up and the kids randomized in order to achieve a Great Leveling.
The result has always been catastrophic, not to mention a gross human rights violation.
[1] https://www.theguardian.com/world/ng-interactive/2021/sep/06...
If anything the mentality has more similarities to race relations today - “the White Man’s burden” of helping these cultures “bring themselves up”. Back then they took kids from parents and gave them a European education, and told them their current culture should be forgotten.
Today we just get rid of failing grades, calculus in high school, and standardized testing and implement racial quotas. In the end it’s the same - assuming we know best for other groups even if in the end it harms them.
In my country the middle class guards their children from the deplorables. Education is no longer equal for all.