That is what makes both of these things wrong... not a tit for tat. Unless you want to justify a mass shooting at a synagogue that kills dozens of Jewish people, just because there is some aggregate counter in your head you mistake for justice.
Yes. It is wrong to violently oppress many people for decades.
It is wrong to attack innocent people in the US.
But one thing is responsible for the other.
Palestinians killing people in the US is not the reason millions of Palestinians have been violently oppressed for decades.
So?
The real problem is the people who keep funding the terrorism. The Palestinian territories used to be the most prosperous non-oil Muslim nation. That doesn't make for good cannon fodder, though.