After you have tried everything else. Get a torx t8 screwdriver and open up the Mac
Take the cover off of the SuperDrive to access the stuck cd
You'll will also need a suction cup to get the front glass Os your iMac off. It's held in place by a magnet