The IDF , when they do pluck up the courage to engage with Palestinian fighters in street fighting, which isn't very often, have done and do exactly that. BUT, the Palestinians don't have the means to " bomb" the houses nor give effective warnings. It's like you think that both sides have the same options open to them when it is blatantly obvious they don't. So , no, you are not applying the same standards because you are ,or appear, ignorant of the reality as to what the combatants on each side have at their disposal.
BTW the state of Israel, if you haven't noticed, has been not only been "taking over" Palestinian homes and killing civilians whilst they have occupied them, they have taken control of/ or have effecxtive control ( read occupy ) entire geological areas belonging to the Palestinians and have used that control/occupation to strip the away the rights of millions of people on a daily basis. Now, apply that to your wish to apply the same standards to both sides.