Its important for the Israeli narrative to associate Hamas with ISIS, two very different entities in ideology and tactics. ISIS is Salafi and target all non-Muslims they encounter. Hamas has no issue with Christians and Jews per se (Gaza has churches and had Israeli journalists reporting from there in past, ie, Amira Haas). They have stated many times their issue is not with Jews but with Zionists. Hamas primarily target Israelis, esp IDF in Israeli proper, but they also associate civilians of fighting age as part of the IDF as its mandatory for all Israelis, men and women to serve with the IDF when they turn 18 (2 years or more) and thus have fighting skills and can be armed and dangerous.
Hamas has never beheaded anyone in past terror attacks, only ISIS has. Hamas I believe is more aware of negative jouralism that can affect their cause, but although civilians have been killed in their attacks, there is no history of them committing gratuitously barbaric attacks like cutting off limbs of defenseless victims or babies. Even ISIS have never done that as the consider any child as a potential future Muslim under 'proper guidance'. ISIS also consider Hamas to be 'heretic' due to their close ties with Shi'ite Iran. So there is a big difference between the 2 entities that much of the west is utterly clueless about and which the Israelis like to exploit with their Hamas=ISIS narrative.