Your 401k/Roth IRA (subtracting early withdrawal penalty) amortized over the loan period literally do count when considering qualifying income for a conventional mortgage. This is not a taxable event. You do not actually have to make distributions. It's just standard procedure that it counts when determining whether you can pay the loan.
You misunderstood. The discussion was not about income qualifications for a loan but about collateral.