Jews lived peacefully with arabs for centuries before this conflict started in 1947.
That is totally untrue, persecution of Jews had been routine throughout the entire period. When foreign control over the area was strong, by the Ottoman Turks, or by the British, Arab aggression was sometimes held in check for periods of time. But generally when foreign control was weak the Arabs would engage in violent, racist aggression against the Jews. Even under the best of circumstances under strong Turk control the Jews were treated as clear second class citizens, never treated with equality.
In any case in 1947 it was the Arabs who launched their racist war of aggression against the Jews, with the express war goal of ethnic cleansing the area. They succeeded in ethnically cleansing every square inch of territory under their control with Jews remaining only in areas that Haganah was able to defend. And in any case it is a fact that today in every Arab majority country the Jews have been entirely ethnically cleansed, and most of them have anti-Jew laws. The difference is stark and brutal: In any area under Jewish control there are both Jews and Arabs. In any area under Arab control all Jews were killed or forced out.
You are mixing up Ottomans and Arabs. While the Turks to this day have a fair degree of tolerance, the Arabs never really did, and there was only tolerance of other religions in the Middle East when it was under non-Arab control (i.e., Ottoman Turk).
In the present day of course none of that even matters -- it is a present day reality that the Arabs since at least the 1930's and all the way through to the modern day are committed to ethnic cleansing and racist aggression. If you created a one state today the result would be same as in 1947: a massive, racist war of aggression initiated by the Arabs with the express purpose of ethnic cleansing.
Maybe some day there will be a generation of Arabs not committed to ethnically cleansing the Jews, but however that came about, for whatever reason, it is a modern reality that a one-state solution is not a peaceful solution. A one state solution would in reality mean Arab violence against the Jews ending in a genocide.
That is why the UN and everybody else rejects it, and most especially why the Jews in Israel will NEVER accept a one-state solution: they are not suicidal, and no amount of bleating and mooing by you is going to make them suicidal.