It is BS 99.998% of the time, for 99.9998% of the visitors who enter; but ask the 0.0001% of foreigners who got caught, like:
- The
two Michaels from Canada
- Five
AstraZeneca staffs detained by China
-
People who work in finance
-
other industries
So, it is a bit of a pain to carry a passport; but is the hassle worth risking going to gaol for the next 10 years? It is up to each individual to decide. For me, it's not worth it.
And specifically, I had been asked multiple times for my passport when buying train tickets in China in 2018 2019. Not having passport would have been a pain, since I could not buy train tickets online as a foreigner.
And this doesn't just apply to China. You should exercise the same level of caution when going to any third world countries where corruption is common, and any police or authoritarian state where government officials are always looking for ways to justify their jobs.