This is a fairly simplistic/wrong view. If this were the case, say, you’d expect housing costs to be fairly reliably lower in low density European countries than high density ones. Spoiler: nope.
In practice housing costs are driven by shortages of _housing_, not land. And these are quite different.
In practice housing costs are driven by shortages of _housing_, not land. And these are quite different.