It's a complex issue. I completely agree that there is too much hypocrisy around, and that if we ban one country's sporting teams for the actions of its government, then we should be fair about it. It was wild having the Winter Olympics in China... during a pandemic.
However, when you are trying to dissuade a government of horrible things, ie, murdering the civilians of a another sovereign nation, but you aren't willing to use force, then you have to use other tools at your disposal, which may mean uninviting sports teams, because, people love sports and have national pride in their teams. I don't know how effective it can be, but I think it's worth trying any tool possible to try and stop the bloodshed.