The D2 designation tells you the main ingredients in the steel. Ingot made D2 has large carbides, where CPM D2 or SPF27 use the same recipe as D2 compositionally, but have much smaller carbides due to how they are made. They perform very differently! Many makers in China are using their own version of steels, but calling them the American name for popularity, but you don't know how it was processed, heat treated, other impurities in it, etc. So because an inferior knife scratched it doesn't necessarily mean it wasn't D2, it means that the inferior knife is harder than the D2 blade. Some claim the Chinese steels are the "equivalent" of D2, but there is no way of knowing if that is true or not, even before the heat treat portion of the process or how the steel was made originally is entered into the equation.
Think of bread. You take 3 bakers, give them the same ingredients and ratios. They get mixed differently and baked according to each bakers style/pans/methods. They are all "bread", but will be different based on other factors. One may be done in a convection oven, one may be proofed longer, one may mix everything at once instead of mixing the wet stuff, the dry stuff, then combining, one may use a different style/material pan, etc. Same recipe, different results!