The ICC and the UN demanded Hamas immediately and unconditionally release their hostages but you disagree with them on that point.The ICC as well as the UN hold Gaza as occupied territory.
p.s. Before the 7th, restrictions in Gaza were regularly being lessened, more Gazans were being allowed travel to and through Israel,, and more Gaza businesses were doing international business. Hamas didn't like that though so they chose to launch a war.