Israel is doing something horrific (genocide) today, that’s the difference. As stated, those countries do have their own issues. But none are currently participating in a genocide of this scale.
And yes, I would prefer if we did pull out of being allied to countries that do genocide. We can also do other things, like not supporting them by giving them the weapons they need, without fully falling out. There’s a lot of options that we just aren’t doing, many more options than just military action. Israel will continue at least as long as the US is supplying weapons.
The thing is, there are tons of US bases in the Middle East other than the ones in Israel. Qatar (who has their own moral issues, but is not actively commiting genocide), for example, has some of the largest US bases in the area. So, the question should be asked: do we really need to keep a country doing a genocide as our ally to maintain power projection in the Middle East? I think the US could get by just fine.