Expect they would where circumstances allow, but forks, fissures, underground waterways and sewers will confuse the matter. Plus, If a tunnel has no movement in it it's effectively invisible.
There probably is a military case for a lot of the attacks, but that's just it, they're ignoring the other consequences of their actions.
I expect that some hotheads in the IDF also consider it a bonus to take out a few bystanders.