Comment by Olreich
Usually the tax incentives are relatively minor and are long term as well. The more important thing with the real-estate strategy is that there's a lot of capital and personal clout wrapped up in these massive building projects and investments. Amazon recently had 2 shiny new buildings built in Arlington, VA. They have a bunch of buildings that were built in Seattle. There's definitely tax incentives involved, but those tax incentives are tiny compared to the billions of capital poured into the buildings.
If anything there are tax penalties. SF makes companies pay a tax per person in a seat working in SF, so it incentivized companies to move offices elsewhere and go remote