The Gaza strip is an enemy state of Israel so, if you are Israeli, you immediately lose your citizenship by entering the Gaza strip (or any of the other enemy states).
https://en.wikipedia.org/wiki/Israeli_nationality_law#Cancel...
https://en.wikipedia.org/wiki/Israeli_nationality_law#Cancel...
That is not the same thing as "you immediately lose your citizenship". Does this actually happen frequently?