Arguably, when Egypt and Jordan both invaded Palestine and if they gave them citizenship, a large majority of these problems would not exist. However, the Palestinian people were not given citizenship which gave them a limbo status where they received no help or support by those governments, with no right to live or work in those countries, leading to them to live in poverty and refugee camps. This made the situation even more dire for the people.

It doesn't change the current situation, but there could have been alternative rearrangements where the people are better off.