Both are Islamist groups that have taken over a geographic area.
Both govern according to their interpretation of Islamic Sharia law.
Both take rights away from women.
Both are viciously violent against their political opponents.
But when Hamas attacks Israeli civilians, we are told "armed resistance is legal under international law."
When Hamas says that women cannot travel without a male guardian the world shrugs.
When Hamas takes suspected "collaborators" out of prison and kills them publicly by dragging them along the street, Human Rights Watch pretends it was some rogue element and calls on Hamas to investigate - itself.
Everyone is outraged at the Taliban, but no one is outraged at Hamas. On the contrary - Hamas is considered far more legitimate a government than the Taliban.
There's no difference between them. But Hamas has one advantage: people hate Jews and therefore, people support Hamas over the Jewish state.