One of the things we looked into before starting the company was a paper that mentioned the Portland project, which showed that gentrification and displacement are not always synonymous. There, the neighborhood was completely gentrified, but the locals benefited greatly, because many of their home prices increased in value, and many owned local businesses that benefited from the influx with affluent people.
One of our goals is to see how we can use our data and business to make gentrification more like the Portland project. One idea has been to provide our data and analytics to city governments for free, so they can act faster in regards to setting up affordable housing.
In the meantime, our customers will be buying the homes, so someone has to act as the seller. If a local resident was the owner of the property, then hopefully, they benefit from the sale (we recommend our customers offer the "listing price" and not negotiate at all). If they are the renter, then current California laws should provide them a lot of protection.
It's not perfect of course, but we are looking for better alternatives.