When CDs are completely unrecognized the easiest way I know to eject them is to restart the computer and hold down your left/only mouse button.
When the computer is starting up, if the mouse button is held it will try to force eject anything in the CD drive without trying to read it. I have never had this fail unless the CD was physically stuck.