An occupation of Gaza is going to be a deathtrap for the IDF. They're going to be taking continual casualties from snipers and IEDs. The entire population has been educated since birth to blame Israel and Jews for all of their problems.
Even if Israel decides to control the schools (and I bet they won't), you'll still have parents teaching their children to hate Jews.
I know that they would take blowback for wiping out Gaza. It's a weakness in Western standards of justice that it isn't seen as a valid option. This is a civilization-destroying mistake Western countries are making.