If we were to draw a line in the sand between "impossible to choose" and "possible to choose" I think generally moving is possible. There could be a million reasons why you'd prefer not to (huge risks, desires to put your efforts elsewhere, etc.) but that doesn't make it impossible, and generally the concept of protected classes (i.e., things we don't discriminate by) applies to things that are impossible to change. Maybe you even need to break a law to move, but that's more readily possible than changing your skin color, gender, etc.
I get the risks: for example probably there is more bot attacks from my IP range (and I'm behind CGNAT anyway) as I live in a less-developed country where people install everything (including pirated software) onto their (generally Windows and Android) devices blindly, with lots of malware.
Then again, the argument still applies: that kind of discrimination (IP-based geoblock because more attacks originate from that IP range) is not so different from skin color discrimination (prejudging, say, dark skin colored people because statistically more dark colored people involve in crime etc.).
I get it, perhaps I admit might even sometimes do it myself (not against skin color, but other factors) but I still think it's wrong.