This should count as income, so they can pay taxes on the “gift.”
Loan forgiveness is counted as income.