For example look at the top end Raspberrypi sensor. It's a pathetic 12MP. That's like a ten year old phone or so?
I think the processing is also not to be entirely dismissed. There is frame stacking that extends the dynamic range and there is compression and other complex DSP going on that is necessary (b/c 50MP of raw pixel data is a ton of raw data to pull off the sensor). Realistically you probably can only do some of that in software
I take a pic with my iPhone and I can ID the things on my slide much better than with the color accurate high end Olympus scientific sensor. And in the end that's what matters most
Edit: added link to Arducam USB cameras : https://www.arducam.com/product/arducam-64mp-motorized-focus... is a 64MP camera although note it's 1FPS. Instead I would prefer https://www.arducam.com/product/presalesarducam-8-3mp-imx585... which has C-mount that's perfect for scopes, it's 4K for still images, and the sensor is specifically designed for low light, when tends to be common in microscopy at higher magnifications./