He's correct in that you'd get a loan or mortgage from a bank still, but incorrect that banks lend out deposits though - a bank loan directly creates new money, so if everyone was using a CBDC and had their money kept in their digital wallet you would no longer need a bank account for storing money, but the only thing that would change about getting a mortgage is that repayments would come from your wallet, not your bank account.