You can support the Palestinian people without supporting Hamas. You can support the Ukrainian people, oppose Russia, and oppose American imperialism at the same time.
Do you see the common thread? You can support the everyday people being oppressed without taking the side of any oppressor.