It’s possible they could, but it’s risky to count on, the history of countries where very different groups who hate eachother have been forced into one country, generally in post colonial states, is full of examples of the situation devolving into civil war and genocide. The two state solution is by no means ideal, but at least in the short term, I think it would stand a better chance of stopping at least the worst of the violence so that things can calm down in the region.