Using a longer lens is really just another version of cropping... so the longer a lens is, the better it has to be.
How so? The optics are filling the full image circle and so less enlarging needs to be done vs cropping? I get atmospheric aberrations come into play but are you saying if you have two optically identical lenses that a 500mm cropped to a 600mm reach is going to look as good as a 600mm uncropped?
All lenses see the same light/scene; the same as your eyes do. So if a detail is x-size relative due to distance, it is the same relative size entering every lens (discounting the negligible differences in a lens' physical length). What a lens does is "crop" the scene you see down to it's FOV, and then it magnifies it
after the light enters the lens. And in order for the image to hold up with the greater magnification, the lens has to be better optically. It is also spreading the light out more, so it needs a larger entrance pupil (same f#) in order to collect more light and equalize the exposure.
Optically identical is very hard to achieve. But let's assume a 500 and a 600 with equivalent MTF (sharpness) ratings... In fact, the 600mm is sharper; because in order to conduct the MTF test the target must be at a greater distance so that the lines cover the same area of the sensor (lines/mm)... it is resolving details which are relatively smaller. In this case, if used from the same distance then the 600 will look better. Because it is able to resolve relatively smaller details. And if you crop the 500mm image you are discarding image area/light, which is going to be additionally detrimental.
If instead we compare lenses that can resolve the same size detail, at the same distance, and to the same level of sharpness, then the greater magnification is going to make any flaws more apparent; and increase diffraction. This is somewhat typical of the large telephoto primes where the max aperture/entrance pupil (F#) reduces in size as FL increases... that's because they are essentially the same basic design/lens (optically the same), only with stronger telephoto elements at the exit pupil (lenses of same generation/technology). In this case the images may look extremely similar, except that you discarded light for the cropped image; assuming the same f#/exposure was used and you didn't take advantage of the shorter lens's larger aperture/lower diffraction. This is essentially the same as adding a TC (increasing the telephoto magnification).
If instead you did take advantage of the shorter lens' larger aperture/lower diffraction then the differences become even less and the 500 cropped could actually look better.
Assuming neither lens can resolve to the level of the sensor (very probable), then the MP's are not much of a factor.
This is why getting closer is much better than using a longer lens... the details are relatively larger entering the lens and there is a much lower requirement from the lens (plus environmental/technique considerations).