Based on the collection's contents, it's generally understood that Sonic CD is not part of the original Sonic Mega Collection, which focused on the classic Genesis-era titles.
If you're specifically after Sonic CD, you may need to look at other compilations or re-releases where it's included. Double-check the exact list of games for whichever collection you're considering before buying.