Hiring a US resident vs a non-resident is not the same thing here in US, simple as that. As a non-resident you can’t just show up at the border and demand US companies should let you work here in US and if not they are discriminating and breaking that law. Heck, most (all countries?) discriminate by putting their citizens and permanent residents first before non-residents when it comes to employment in that country.