It's a debate over the definition of "owning property", which is something that changes frequently over the years. We're always trying to find some sensible middle ground.
Unfortunately there are two different concepts of "we" at play. The "we" who get pushed out of our neighborhoods by tourism-driven rent increases will most certainly not be the "we" who decide what's more important.
Vote. That's how democracy works. If you lose, you accept your loss.
And when you say "apartment", I'm assuming you mean with permission from your landlord/management company with a lease that doesn't prohibit unapproved sublets, right? Because to do otherwise would violate their property rights.
But will it last as local jurisdictions add short-term rental restrictions? That's the question. Those governments are accountable to their local voters, not AirBnB, and definitely not the travelers who use it.