Deductions & credits

Yes.  But you still  get a deduction if you pay medical bills directly from your checking account (if you Itemize and don't take the Standard Deduction).  So there's no point in moving it to the HSA first.