After Hamas’s deadly rampage on October 7, Israel was quick to compare the group to the Islamic State. “