Enforcement is the hardest issue with these proposals. I agree that when ignoring the problems of enforcement this is an ideal solution.
You could cap the number of occupancy credits per sqft to keep things reasonable.
It would also help with things like state taxes based on primary residence.