Deductions & credits

that is correct - it is the way it works. 

 

take a $2500 distribution from your HSA which are supported by medical expenses.  

 

the alternative is to again get charged the 6% penalty in 2024.