New homes should be built on a Stockport golf course to address the “chronic” need for housing, an inquiry has heard.