Israel's war against the Palestinian people is also just not some immoral decisions at certain levels, their entire strategy is ethnic cleansing and apartheid. And, Russian attempts at genocide, and their countless war crimes, was not necessary for the ban: The International Olympic Committee recommended a ban of Russian and Belerusian athletes on the 28th of February 2022, four days after the invasion. Note that Belarus isn't even active in the war, though of course they're very friendly with Russia. FIFA and UEFA also banned the Russian national team and all Russian clubs from their competitions on the same date. The clear picture of how far the Russians were willing to go started with Bucha, and while there were reports of big civilian casualties a week into March, it wasn't until the latter half things really started to come out, and then pictures and video footage after the retreat on April 1st.
Going to war itself was enough for Russia, and that is a standard we clearly don't set for ourselves or our allies, so for the vast majority of people it has very little to do with principles. I don't know what the right answer is, but whatever the decision is it should at least not be an easy one. There's also not just a binary choice of ban or no ban, clearly there's a big difference between a Russian playing tennis and a Russian national team competing. You also have the alternative of letting Russian athletes compete, but not under the Russian flag, just as how Russian athletes who didn't get connected to the 2014 doping scandal were allowed. I'm not convinced I see how it helps Ukraine to ban Ian Nepomniachtchi and Daniil Dubov, two opponents of the war, from playing chess. Sergey Karjakin, a supporter of the war, is in contrast banned.