Hamas/Gaza has a common border with Israel and feel contained by them, ISIS is elsewhere. Gaza can't be nuked without affecting Israeli territory at the same time, Raqqa could be.
Yes the common border is a problem for Israel. Hamas is constantly sending missiles into Israel. Thank the Lord for the Iron Dome.