I wouldn’t assume renting is automatically lower-risk. Your rent can change, you may have to move, and the next comparable apartment might cost more. Buying can remove some of that uncertainty.
Still, the building itself is crucial. High energy use, intensive facilities and frequent common-area...