This is an issue that got brought up in Portland, OR during Covid IIRC. The city was looking at buying up vacant offices and converting them to living space but it just didn't make any sense financially and the city concluded it was cheaper to demolish and rebuild than convert.