It doesn’t matter what you think.
It matters what the boss thinks.
You could be God’s gift to your employer, but if your employer thinks somebody only marginally good but way cheaper and easier to manage is a better choice, prepare to be ousted by the H1b.
And you’ll likely only find out the hard way.
My work at a heavy machinery manufacturer made it impossible to lay me off. My expertise in design of machines subjected to highest impact loads in the world (cold extrusion if steel) plus my expertise in using numerically controlled machines plus my ability to develop expert software for design and manufacturing, was enough for life time secure job. I retired at age 57 due to becoming financially independent. Spent next 15 years at Royal Oaks Country club in Vancouver, WA. Those were the best years of my life. Now in Florida doing 6 cruises every year.