Israel has enormous advantage over Palestinians and while I don’t mind them waging war with Hamas, indiscriminate bombing is not ok and never will be.
The thing is, under the rules of war, protected installations (such as residential areas or even hospitals) lose their protection if they are being abused by a warring party for military operations. Otherwise, it would be an open invitation for anyone to do what Hamas did - force the other party between either risking getting shot at or violating rules of war.
No one forced Hamas to embed themselves among civilians. They did that on their own.
You should maybe research where key millitary apparatus of the Israeli state is located. The headquarters of the IDF for example.
Can you say the same about Hamas?
The arguments you are using for attacking Palestinian infastructure and people are more than applicable to Israeli infastructure and population.
In international law people have the right to resist occupation through millitary means. In a small area under occupation then there is no means to create a millitary setup that matches what the 'good guys' consider to be legitimate.
If you want to be consistent then allow Palestinians to have a millitary, air space, airports, ports, navy, jets, nuclear weapons etc. And then you can fight them on equal terms.