I think you’re falling into an easy trap when it comes to the word “gentrification”
No individual, be it in a state or a city or neighborhood, is to blame for gentrification. By definition gentrification is a collective movement — one billionaire with a ski chalet on a private mountain in extremely rural Montana does not gentrify the entire region, nor does it really raise the property values of any home near it.
Gentrification is systemic, and approaching California’s population loss and gain through this framework explains pretty much everything that is wrong with California at a policy and macro level.
The reason for this “gentrification” at the state level would confirm everyone’s priors: the cost of living is simply too high for most people. That would be greatly alleviated by building more housing to increase the supply for the bottom 90% of people who struggle with their mortgage payments, rent, or scraping enough money for a down payment together and realizing they can buy a home outright twice the size in Texas for what is just the down payment in California.