China has officially responded about hotels rejecting foreigners!
Note: this has technically been the law for a few years but it was not enforced, esp during COVID, nor did many smaller hotels have the software needed to even enter foreign names. Certain chains had a 3 character limit on the name field and because guests legally had to register their ID, they couldn't accommodate. Other short stay hotels wrongly assumed they needed special licenses to house foreigners like long term accommodation.
Oh that is very nice. It was one of the things that made me wary of travelling in china, since it would have really limited me. Though I also heard you could just get the cops to get you a place at a hotel, if you didn't find one.