Thanks for the replies Genius1, FrancisA, and ComputerCommuter.
FrancisA -- yes, that was exactly my point. It seems to me that in this case D is as flexible as Y, yet cheaper (and offering a higher cabin). Maybe I need to review the detailed fare rules.