Of course the real metric of whether you should buy or rent is effective cap rate. i.e., can it be the same or higher than mortgage rates, making it significantly cheaper to buy?
Precious few studies use that method, and include things like average taxes, average insurance, and average HOA fees in their metric.