Honestly Hamas is what struck the match for Israel to start killing.
May I interest you in literally all of Palestinian history? What did you want them to do? Sit on their asses as they’re starved and the West bank is ethnically cleansed by the Nazis?
Accept one of the many peace deals for two states that were offered. 1935, 1947, 1948, 1967, 2000, 2008. This list is incomplete.
For the first three: Why the hell did they have to give up their land to people who explicitly wanted to create an apartheid state?
For the rest: Pick any one of those and I’ll explain in detail why it was another farce. You’ll also have to explain what 1967 peace deal there was for Palestinians to accept.
Under UN partition plan nobody would have needed to move. Everybody would stay where they live already. Jewish immigration would only go to one of the states. It was always planned with a minority of Jews in the Arab state and a minority of Arabs in the Jewish state. So no giving up land that was privately owned. All land acquired by Zionists until 1948 was legally purchased.
Why? To avoid war.
Between 1948 and 1967 Palestinians could have accepted Israel’s existence and declared a Palestinian state in the non occupied West Bank and Gaza.