The IDF has done targeted assassinations in Gaza without any regard for collateral damage due to the location of the target, though. It would be entirely within the expected actions of the IDF to strike an elementary school if one of the kid's parents happened to be an IRCG officer (or even member) and said parent happened to be dropping off their child, picking them up for illness, or attending a school play or something. From the targeting of Hamas officials in the middle of refugee camps where Gazans were explicitly told to go for safety, I expect exactly zero restraint from the IDF at a children's school (if not a point in favor of striking).