If you're a businessman, you build a business that works with the prevailing pricing that's out there. That includes prices for everything such as raw materials, office rent, AWS/GCP cloud costs, government taxes & fees, and yes, high programmer salaries.
Complaining that your startup is "hurt" because AWS egress transfer fees are too high, or office sq footage $ is too high, or programmers cost $350k is counterproductive.
To think like a businessman, one has to turn that around: how do I build a more valuable business that can pay the high costs of the San Fran office and the $350k salary?
E.g., Jeff Bezos in 1994 isn't going to handicap himself because Microsoft was paying $100k salaries. Google in 1998 can't blame the difficult recruiting on Cisco and Sun Microsystems paying $100k salaries.
Either build up value in the business and/or include the high programmer salaries in the numbers when you ask VCs for money.
The other option, as other sibling comments noted, is to attract programmers who will work at a discount. Brian Acton & Jan Koum applied to Facebook and were rejected.[1] They are obviously not the worst programmers in the world and many of their caliber won't get $350k from Facebook/Google. See if you can hire overlooked programmers like them. Some will also work for a discount because they value the startup's equity or other intangibles. A startup entrepreneur has to hustle and make compelling propositions to these programmers.
[1] https://en.wikipedia.org/wiki/WhatsApp#2009.E2.80.932014