D2 is a harder tool steel than A2 and it is stainless (or semi-stainless). It is very hard (for me) to sharpen. I can get it sharp and it maintains its sharpness longer than A2, but the question is how "sharp" the edge is it will maintain.
A2 is not stainless and will form a patina and even rust, given enough lack of care. It's probably "tougher" than D2, though not as "hard". I can sharpen it to a razor fine edge, something I cannot do with D2, and it will maintain that edge sufficiently to make me happy. It won;t cut through as many different materials as D2 and keep the same edge.
I'm not a scientist or metallurgist, but I will say this through experience: with most steels, I don;t think the average knife user, even if he has lots of knives in different steels, is able to tell much of a difference between one steel and the next. With D2 and a few others, though, the difference is noticeable to even novices. That doesn;t mean it's noticeably better, just noticeably different.
In the end, I prefer A2. In fact, I prefer all steels to D2.