Hamas, for Zionist leaders, is controlled opposition. It’s not controlled like a puppet, but funded and kept in power by Israel because its aims, like those of the corrupt Palestine Authority, are to dominate and control ordinary Palestinians in the name of supposedly standing up against Israel while not doing anything that can actually defeat Israel.
The latter would require waging the class war against the billionaire ruling class of Israel. Hamas and Israel’s leaders need each other; each helps the other keep a grip on its own people, providing the other a perfect enemy with which to frighten its “own people” into obedience.