Those are the hard problems, and they're problems that historically came from the Palestinians refusing to accept that the Jewish state has a right to exist, and refusing to accept that Jewish people have a right to live in large numbers in Palestine.[1] It's ironic and cynical to hear the "apartheid" claim with reference to Israel, because the nation exists to combat apartheid practiced against Jews, in a region dominated by governments that are aligned to an official religion that isn't Judaism. The plight of Gazans is a tragedy, and one which the Palestinians arrived at by refusing for generations to honestly and unequivocally embrace a peaceful coexistence with the Jewish people in Palestine.
[1] https://en.m.wikipedia.org/wiki/London_Conference_of_1946%E2...