I hadn't considered the parallels with South Africa, but there you go.
It's so easy to fuck everything up. But to then rebuild, while incorporating evolving standards of decency and ethical considerations... it seems an intractable problem.
Maybe the only solace in the fact that segregation exists in so many places is that if some group develops a workable, repeatable solution, we could universalize it. But there are no easy solutions.