> you can apply for permanent residency while you have it.
Just to further complicate it, for many people _your employer_ has to apply for permanent residency on your behalf which is another 2 year ordeal and fair bit of money (that's just to get the green card priority date, not to mention waiting for the green card itself which varies by country). And that further indentures you since if you leave during that period you effectively abandon that application.