The race was between Commodore, Apple and a few others, Oric etc. The IBM PC was extremely expensive in comparison, a factor 10 typically. But because of Word Perfect and Lotus, MSFS and so on, the only thing to have was a IBM or a clone. CP/M had nothing to do with this, at that time the world were all Commodore and Amstradt, Oric and so on while IBM was exclusively business. Commodore faught well, but had to give in eventually.