On B: 2D, alerted as possibly 2, would not be a psych as it was alerted as systemic. But what system? I assume they are playing some big club system. Thus the opening with 4=3=2=4 is either 1D or 1NT and the opening with 4=3=4=2 is either 1D or 1NT. Of course 1NT requires a specific range. So 1D when outside that range.
Often alerts are minimal such that you need to know more about their system before you can make much of them. Consider an opening by a2/1 player of 1C, alerted as "could be short". Ok really this means "could be as short as 2". But it will (for most 2/1 players, only be as short as 2 when his shape is exactly 4=4=3=2. It's true that some open 1C on 4=3=4=2 so that a 1D opening also promises 5, but that is definitely not standard. Similarly, for a 2/1 player, if 1D is alerted as possibly on 3, this will only be (for most players) when they are 4=4=3=2. So it comes down to: Is a 4=4=3=2 opened 1D or 1C? On other shapes, 1C is on 3+ and 1D on 4+. In particular 1D=1M=1NT is on 4+ D and 1C-1H-1NT is on 4+C unless, fpr some, pn precisely 4=3=3=3.
Anyway, my point is that alerts, by rheir nature, are often incomplete and I take this alert as saying "We are playing a big club system so, when we hold 11-15, opening 1C is out of the question and thus unless we can open 1NT the 1D says nothing about the relative length of clubs and diamonds". 4=2 and 2=4 in the minors are equally likely shapes. If so, I want pard to choose his longer minor.
On D, yes, I misread it. More later.
Added: Ah yes, now that I have had my coffee I remember what I was thinking. I take the X, followed by 4D, as "I have extras, I Xed in case you wanted to make a penalty pass, I don't have four spades, so raise to 5D if you want." Thus X followed by 4D is a hand with enough strength to be willing to play 3HX if that suits me, but not such a monster as to force 5D. But of course it doesn't forbid 5D. Pard really does not know I have anything at all, and he can assume I do not have a great deal since, with four spades and values, I would have Xed directly over 3H. So I have more than I might have. Is it enough to go on to 5D? Maybe so.
Requires more thought.