you are, obviously, interpreting the law to fit your narrative:
""The fact that an alien is the beneficiary of an application for a preference status filed under section 1154 of this title or has otherwise sought permanent residence in the United States shall not constitute evidence of an intention to abandon a foreign residence for purposes of obtaining a visa as a nonimmigrant described in subparagraph (H)(i)(b) or (c), (L), or (V) of section 1101(a)(15) of this title or otherwise obtaining or maintaining the status of a nonimmigrant described in such subparagraph"
All this means is that you, indeed, can be dual intent and apply for permanent residency while holding a H-1B, like generations of Americans have done before ourselves.