Sure, you don't earn rent with gold and you do with real estate. OTOH, you don't pay annual property taxes on gold, have to fix broken plumbing, or deal with tenants who game the system and don't pay rent for months.
I suspect that if you include rent that commercial real estate would do...