You need to take in the local income to see how affordable the local housing is. A very good index is the RBC housing affordability index:
The RBC Housing Affordability Measures show the proportion of median pre-tax household income that would be required to service the cost of mortgage payments (principal and interest), property taxes, and utilities on a detached bungalow
Toronto 55.6%
Montreal 38.8%
Vancouver 81.6%
Ottawa 36.7%
Calgary 33.8%
Based on local income, Calgary is the most affordable city. Montreal housing is very cheap $$ wise, but you make significantly less money.