The code

    \require{AMScd}\begin{CD}
    0 @>>> \mathbf D(C) \\
    0 @>>> M
    \end{CD}

produces
$$\require{AMScd}\begin{CD}
0 @>>> \mathbf D(C) \\
0 @>>> M
\end{CD}$$

To make sure we're seeing the same thing, when I preview the page, it shows up thus for me, with the arrow in the second row aligned with the $\mathbf D(C)$ in the first row:

[![Non-aligned behaviour][1]][1]

This happens with Firefox, Safari, and Chrome, with all renderers (at least on Safari—I didn't try them all on each browser), in macOS 13.1.

When compiled using TeX (as opposed to MathJax), the result of the code, *mutatis mutandis*, has the expected alignment of the two arrows:

[![Expected aligned behaviour][2]][2]


  [1]: https://i.sstatic.net/LW3Un.png
  [2]: https://i.sstatic.net/8krEQ.png