Credit cards

“In most cases“ the bank will reject the deposit. Sometimes the deposit will go through anyway. You should never direct a refund it to a bank account you do not control, because if the person who owns the account will not give you the money, you have no legal recourse with the IRS.  Since they deposited the money exactly where where you told them, they can’t help you get it back.