Gaza and the West Bank aren't countries, they have no autonomy. Palestine isn't a country, it was once where Israel now sits, but hasn't been since the 40s.
Palestinians are people, must like Jews are people. Palestinians are the indigenous inhabitants of Israel, the west bank, and gaza.
Much like all Jews aren't responsible for the actions of Israel, All Palestinians aren't responsible for the actions of Hamas. Even the residence of Gaza.
In the 40s, the British were ruling Palestine as a mandate, I wouldn’t really call that a country.
Collective punishment is a war crime.