So even by the standard you're proposing, Hamas massacred around 358 people who wouldn't qualify as military targets under anyone's rules of engagement. Including theirs, apparently, since Hamas's own explanation was that they "may have thought" the ravers were soldiers "resting"; i.e. they didn't know and killed them anyway.
The argument you've constructed requires Hamas to have been applying a targeting framework. The evidence is that they found a large crowd of Israelis and opened fire.
[1] https://www.timesofisrael.com/idf-okayed-nova-music-festival...