Difference between Code W and Code DD in box 12 of Form W-2

In some posts, I see the following explanation for code DD:
"Box 12 amounts with the code DD signify the total cost of what you and your employer paid for your employer-sponsored health coverage plan."

 

In other posts, I see the following explanation for code W:
"Both the employer and pre-tax employee HSA contributions made through payroll are reported on the Form W-2 in Box 12 with Code W."


Based on these explanations, I don't see a clear difference.
Anyways, in my W-2 form, there is a huge difference in the amount.
Code DD amount is much higher than Code W amount.

 

Can you please clarify the difference?