I was told that the 7 in Cmaj7 indicates the 7th scale degree.
But here's what's confusing to me: in the C major scale, the 7th scale degree is B. And the interval from the root note of the Cmaj7 chord to the 7th would be a M7.
However, in the C Dorian scale, the 7th scale degree is A#, and the interval from the root note of Cmaj7 to the 7th would be a m7.
So if the number 7 in Cmaj7 really indicates the 7th scale degree, then does that mean Cmaj7 in C major scale is different than Cmaj7 in C Dorian scale?