Practically speaking for many foreign tech workers, a visa such as the H1-B is pretty much the first step to getting a GC eventually, so advising they skip the H1 and go “get a GC” isn’t going to be all that helpful for many.
It’s pretty hard to go straight to a GC for most foreigners, even among those with excellent academic qualifications. How hard this is also often depends entirely on your passport lottery result - be unfortunate enough to be born with an Indian one and you are easily looking at a minimum 10 year wait times in a great many cases, and to live and work in US during that period you are likely going to need some kind of work visa like the H1.
Even for the best case scenarios (passport from a country with a current GC priority date etc) it still realistically often takes at least a year to complete the GC process.