They are not completely distinct at the moment but to say that Hamas represents Gazans would be incorrect. Hamas win about a third of the vote in 2006 but that was the most so they got control of the government but have not had an election since. Many in the Israeli government were happy with the result because it weakened the PLO and therefore calls for a two state solution. Hell, Israel funded Hamas’ startup back in the 80s for exactly that purpose.