To meet the legal definition of genocide, you also have to have the intent to destroy a particular group of people. So, legally speaking, your example isn’t genocide according to any source.
I don’t know the motives behind the Israel/Palestine conflict or how it started, but if it doesn’t involve an intent to destroy Palestinians specifically, I guess I could see how GPT’s take is valid. Like, the war in Ukraine is egregious too, but that by itself doesn’t make it a genocide.