u/Otter@lemmy.ca provided an output of its reasoning when asked to explain this behavior, and I think it's worth examining.
The short version is that when asked why it can joke about some groups and not others it speculates that it maybe because it's output is based on training data, and its safeguards recognize that the training data on some topics is more likely than others to be lower in cultural literacy and higher in offensive stereotypes, and this can lead it to decline a request. That sounds like a fairly credible explanation.
I just want to preempt any debate over whether these claims are credible by saying that they are fundamentally not relevant to the long-term needs of this situation.
Palestinians in Gaza, the West Bank, East Jerusalem, and Israel need to be afforded their human rights. Israelis need security, and will never get it from violence and ruthless persecution of this ethnic underclass they've created.
My point is that if you diagram out the best of course of action, all nodes on that diagram that are based on what Hamas has or hasn't done lead to no meaningful difference. Their violence is abhorrent. There is no point is debating over their tactics or location however, because none of it changes the harsh realities that only a negotiation that provides Palestinians access to safe homes, education, food, etc. is going to bring an end to the cycle of violence, and I feel compelled to point this out whenever these distractions pop up, as they do on a daily basis.