Deductions & credits

One has nothing to do with the other ... you can contribute to your HSA since you qualify to do so.