Israel is absolutely wrong for doing stuff like that. It's one thing to claim that you need to occupy certain areas for the security of your own lands, but when you start evicting residents and moving your own people in, it becomes obvious what your true intent is. The USA and other countries need to do better in calling it out.
That said, lets not use that in a way that it tries to excuse the actions of Hamas. Hamas doesn't give a damn about the Palestine people and is not fighting Israel in the name of people who have been unjustly evicted from their homes. It wouldn't matter if there were a "two state solution" with both sides living in peace, there would still be groups like Hamas trying to wipe out Israel.