The difference between Israel and Hamas? Israel said that when the rocket attacks stopped, they would pull out.
The rocket attacks stopped. Israel pulled out.
(Oh, that and the fact that the Israelis don't hide behind their women and children and don't store weapons in hospitals, schools, and holy places.)
On that international playground known as the Middle East, every once in a while one needs to smash the bully in the face.