Rabbi Ovadia is a spiritual leader of one party - Shas, which represents segment of religious Jews of Sephardic origin. Not more and not less. Hamas is party which had a mandate from the majority of the Palestinians to govern PA. So it's supposed to be a legitimate government of the Palestinians. It's huge difference.
Iran: IAEA visit to U.S. Senate damages UN neutrality (DPA)
from the article: Shas spiritual leader: Abbas and Palestinians should perish