Apartheid was not a success either though.
And sure post-apartheid isn't pretty yet, but we don't/can't know what SA would look like today if there had never been apartheid.
I don't think anything in South African history would point to segregation being a solution to any social, economic, or political problems.