Unfortunately, you can defeat an organization like Hamas purely through violence. It's just that the only level of violence capable of doing so demands a total genocide. Which Israel looks likely to attempt to complete while the world wrings its hands.
The lack of interest in even an unequal peace on Israel's part in favor of genociding Palestinians would, in an ideal world, open a great number of eyes. But I'm not particularly hopeful. People have short memories and little interest in foreign affairs.