2. For any real numbers $x, y$, let $a=\cos x^{2}+\cos y^{2}-\cos x y$, then the range of $a$ is
(A) $[-3,3]$
(B) $(-3,3)$
(C) $[-1,3$ )
(D) $(-1,3]$
C



Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.