Deductions & credits

Unfortunately, there is a difference between allowed Hardship Withdrawals under the terms retirement plans, and those of the IRS.  While yours may qualify for the former, it does not necessarily do so for the IRS.