What I have seen is a confusion (perhaps intentional) between anti-semitism, and protesting Israel’s behavior since the Hamas attack in October.
Criticizing Israel’s response is not anti-Semitism- it is literally just criticizing the response.
If we compare # of people in each country. 10/07 for Israel was like 15 9/11s (this is a quote from a President Biden speech).
So not only is it worth asking - how many Americans didnt want to fight Al Qaeda in Afghanistan. But how many would be against some sort of war like that, if tomorrow morning they woke up to a 9/11 sized attack in 15 of the biggest US cities, happening at the same time
Not only did the US go far from home to destroy Afghanistan, but the whole world joined them to do it together
US foreign policy isn't nice or morally sound, but one thing it was not doing in the run-up to 9/11 and its subsequent invasion of Afghanistan was directly fucking up Afghani lives and killing Afghani children. Same can't be said for Israel in its relationship to the Palestinians.
But that said, I agree with your general point: The relationship between the US and Afghanistan is and was very different to the relationship between Israel and Palestine.