2012 Macbook Pro had a physical CD eject button (it was top-right of the keyboard). Control was probably routed through the OS, so that may not be what you meant, but it was definitely physical.
But you could “eject” (unmount) anything with it, disk images etc. It wasn’t hardwired to any particular drive.