I think discussion around the interpretation of the Geneva convention is an important part of this issue though. A lack of clarity in the original text is what allows Israel to claim their actions are not war crimes.
At minimum I don’t think this supports the idea that it doesn’t matter at all whether or what Hamas was using the hospital for. But what do you think is meant by this article if not that hospitals can lose protection if used for military purposes?