Not really, their material conditions are what drives the conflict. End the aparthied regime and with it the largest factors in division crumble, over time feelings will fade.
It certainly won't be simple, easy, or immediate, but it is the only valid path to lasting peace. Everthing else keeps the core problems intact.
That's a pretty naive take. There are plenty of rich religious fundamentalists, and plenty of poor atheists. And plenty of rich societies with very little tolerance for critical thinking