Maybe some of the people in mainstream militaries are psychopaths who try and kill innocent families to spread terror. And I think some cases like the firebombing of Japan and Germany do fall under that. But on the whole I think I'm mainstream militaries such actions are the exception and goals and targets are military.
In this case there was no parading over the body of an enemy. This wasn't an enemy this was a girl in her early 20s. How is she an enemy, she didn't do anything. We don't even know maybe she opposed Israel settlements and wanted a different approach to Gaza.
The difference with groups like Hamas is they don't care, everyone is an enemy deserving of rape and torture, even random girls in their 20s. It's not the same thing, comparing this intentional attack to unintentional breaks of discipline or accidents in military contexts seems insane in my mind. The difference is Hamas intentionally targets civilians as their official policy, that's their organizational approach.