All the other factors certainly contribute, but cheap credit only affects how much the most desperate buyer is able to pay. This becomes the limiting factor almost everywhere, meaning that prices would be equally unaffordable if credit wasn’t cheap.
Building much more is the only fundamental solution, as this will reduce the proportion of desperate buyers. But of course local democracy prevents that - meaning, the problem persists indefinitely and we’re only wasting time discussing it.