Edit: The sad story being that Commodore marketing apparently was happy with merely selling in the home computer market, where Commodore machines sold seemingly by them selves, and didn't bother to bare the hassles of the competition of the business market. – Which eventually resulted in the end of the company.
I distinctly remember picking up a copy of UnixWorld in about 1990 or so and seeing an Atari TT030 in it, with the caption "up from toyland" and a couple paragraphs describing the specs of the machine as being workstation class and it shipping with AT&T Unix and it being cost effective but how could anyone take it seriously coming from a home computer and games maker? That was the start of the last couple years for Atari and Commodore, they were both done soon after. Apple barely survived.
CBM and Atari made powerful machines that came "up" from the home computer market. IBM made underpowered machines that came "down" from a mainframe manufacturer. It was an easy choice for PHB's to go with Big Blue. As they used to say: "Nobody ever got fired for buying IBM."
How Apple survived was something of a miracle. My impression is that it was because it gained early traction in certain industries with the first mass-market WIMP machine, and retained some air of "seriousness" because pre-IBM PC, 8-bit Apples were the "serious" business machine for the vast majority of companies. (Think 90,000 accountants all banging out VisiCalc* sheets.)
*The fact that iOS just auto-corrected my spelling of VisiCalc in 2019 makes my inner nerd smile.)
The precise set of brands that did well varied a lot by country, but Apple did poorly in most of Europe until the Mac started getting traction, and Commodore did well in most of Western Europe.
Part of it was that Tramiels US price war stunt figuratively burned Commodores US dealer network to the ground, but when before that done European markets, particularly Germany did far better.
Commodore was at one point one of the best known consumer brands in Germany, irrespective of category. Somewhat less so in Europe as a whole, but still a name mentioned alongside IBM etc by people who had no idea who Apple were.
Regarding Atari, it's a not too well known historical footnote that IBM was considering to acquire Atari's computer division, when IBM gave up their various efforts of introducing a consumer machine of their own in the late 1970s. (There's even an "IBM-Atari" design prototype by Tom Hardy.) A broader knowledge of this may have changed Atari's image quite dramatically.
Commodore was a very serious and successful supplier of small business computers with the 8xxx and 82xx series.
The main problem was that in this segment Commodore came out of a typewriter/calculator mindset, so there were absolutely nobody who ever thought "lets connect computers together", and that set a hard upper ceiling how how large companies they could sell to.
Once a business grew, the CBM computers were replaced, not because they were unhappy with them, but because they were not big enough.
Heck, even at Commodore we used IBM S/34 internally.