Is a iMac and a computer the same?

An iMac is a computer, but a computer is not necessarily an iMac, so they are not the same thing.