But Canon and Nikon did well in the transition to digital, other companies like Olympus and Leica did OK. They even seem to be surviving the rise of the mobile phone camera age, competing with a camera that effectively comes free with the phone.
You have to be really careful with making analogies.
Disclosure: I worked for Canon 2001-2004 in their European Research Labs,
[OT] TDLR: Fuji has been wayyy more successful than Kodak in the digital transition. Too much success/ entrenched interests killed Kodak. Same for Mercedes et al in the car industry.
The ONE company to compare with Kodak in this regard is FujiFilm, part of the Fuji conglomerate. They never exited the film business, and also took up Polaroid's niche business in instant film and cameras, which is now a big success for photographers pro and casual alike.
More importantly Fuji scaled back the film business, BUT at the same time invested and innovated in the digital film aka sensor area. For a while their special sensors mounted in Nikon bodies under licensing were the go to indispensable cameras for pro photographers in the wedding business. Because they were the only ones with enough dynamic range to be able to render the subtleties of the white dresses.
Fuji also produced the first decent pocket digicam (F11 and F30, which achieved collector status) that pro photographers were happy to carry. *THEN* they realized there was a void in the market for more photographer centric cameras, which were by then only produced by Leica (and a feeble attempt by Epson).
So out came the Fuji X100 and its many derivatives, taking over a large part of the market with their high quality images SOOC (straight out of camera), all with its expertise in film color and grain rendition. Finally they also took a big bite out of the Hasselblad class of large sensor studio cameras, with their GFX mid size sensors, in small form factor.
One of their latest models is (still) on back order as essentially *all* the museums are now using them for their high quality color and lens qualities, at a more affordable price than the standards too.
Where they (and many others except apparently Zeiss) missed the boat is in not incorporating AI post processing in their cams like Apple and Google did in their cams. You can be sure they're all feverish working on it. Which is why I buy more lenses and only new bodies if absolutely "required".
Disclosure: long time photographer, Nikon 900, Canon 5D, Nikon D700, Fuji F11, Fuji X100s, X-t1, X-H1 .. and some older Zeiss, Nikon, Canon, Yashica film cams.