Homegrove Netanyuhu certainly is on the record for supporting Hamas.
Except Hamas want to create an Islamic Palestinian state (ruled by them) , while israel does not want a large Palestinian state which threatens their existence. Where Israel may have seen some benefit to the existence of Hamas it will have probably been in keeping Palestine destabilised and divided, as the Palestinian Authority and Hamas are unable to work together.