There is no obligation[1] to consider any candidate who needs visa sponsorship. Green cards are different. In hiring they must be considered like any citizen candidate.
For those seemingly not believing this, read: [1]https://www.avvo.com/legal-answers/can-a-company-refuse-to-c...
Looks like people are downvoting facts, in the hope that this will change the facts.