You can't unlock Sonic CD on Sonic Mega Collection or Sonic Mega Collection Plus, it simply isn't included on either disc.
If you're set on playing it, Sonic CD is available on Sonic Gems Collection for the Nintendo GameCube. That's your best bet for tracking it down.