They have identical values, but different functions.

One type of dice determines the total number of your hit points.
The other type of dice is what you use up to recover lost hit points.

When you use a hit die to regain hit points, your total number of hit dice does not change. You don't use up your "total hit points determination dice".