There are out-of-state alternatives where $300k is doable such as Las Vegas, Phoenix, and Houston, but if the OP is a lifelong Californian like myself, then moving to another state may be quite a change.
I'm in a similar situation as the OP. I currently rent an apartment in a coastal area near Silicon Valley that I love. I can afford to purchase a place up to about $425K based on my income, savings, and DTI, but $425K isn't enough to purchase anything near commute distance from Silicon Valley, and while I could have afforded Sacramento two years ago, the pandemic-era rise of prices in the Sacramento area have priced me out of the neighborhoods I want to live in. Thus I still rent.
How good is your credit? If it's good and you have a high income to debt ratio, your PMI will likely be pretty minimal. If so, you may end up netting better if you invest what you'd put down and let that money grow instead. Or you can put some of that into points for lower interest rates.
These things are pretty easy to figure out if you know what your home budget. There are a few places you can get rough estimates based on your credit score.
[1]: https://www.bankrate.com/mortgages/mortgage-rates/?mortgageT... [2]: https://www.hsh.com/calc-pmi.html
While you are doing that, see if you can get a Naca loan.