Ukrainians can drop explosives through the open hatch of Russian tanks but Israel is incapable of being a little more selective in their fire?
The situations are not strictly analogous. The tanks is Ukraine are far more widely spaced that in Gaza and the population density is very different. Plus the Ukrainians/Russians can assume that anyone near their tanks is a solider. The Israelis cannot assume that in Gaza. And a Javelin missile is not very good in an multi-storey urban environment.
I don't even see it as that complex.
A tank in Ukraine that isn't Ukrainian is a violent invader. People defending their country are, of course, going to use their weapons as effectively as possible.
Gazans are the invaders in their situation. Violent, and worse. The Gazan elite depend on using innocent people as human shields. Lots of sorta innocent people get killed.
That way, Islamic militants can behave brutally and still claim to be victims.
Tom