Most F50 companies will not hire those without citizenship and will be reluctant to hire talent born in China to protect trade secrets. The number of Chinese students at the local BIG!) university by me is a fraction of what it was in 2019. Companies are well aware of the risks now.
Maybe you should look at some compsci papers coming out of US universities, and tell us what percentage of those are authored by Indian and Chinese students.
The economics of doing graduate school as an American just don't make sense (outside of those closely affiliated with DoE labs).
For a foreigner (Indian, Pakistani, Chinese, Iranian) the incentive of getting a path to naturalization along with degree normalization is enough incentive (as you yourself probably know).
No American employer is going to hire a LUMS or UET graduate directly, and if you don't want to work in the Gulf or in Pakistan, your only option is graduate school, especially because there aren't as many MNCs to sponsor an L1/2
Top tier foreign talent gets brought directly via L1/2 programs (like my parents a couple decades ago) as MNCs will transfer the cream of the crop to HQ.
In cases like Pakistan and increasingly China, where MNCs don't have full ownership or are non-existent, the only path is graduate school.
Same thing used to happen to Israelis and Indians in the 1980s.
I’m domestic (my mother was born in Pak), I did a stint as an instructor so I don’t TA anymore. But even when I did they could be counted on the fingers of one hand.