Not sure if I get it right...but lets say you have a 50MP Camera and a 36MP Camera. Now you shoot both with f16. The 36 MP camera would maybe equal a 24MP camera but the 50MP camera would behave like a 36 MP camera.
No, this is why it's confusing. Your 36 MP camera does not become or behave like a 24 MP camera.
All that diffraction does is reduce contrast, increasingly so as it approaches the highest spatial frequencies and the narrower the aperture gets, the micro-detail suffers from reduced contrast. A higher MP camera can sample that micro-detail more finely, and thus may extract more detail out of it (which creates more useful data for post-processing).
There is a physical limit beyond which there will be no contrast left due to diffraction, even for high MP cameras, but for the current 50 MP DSLRs that limit is somewhere near f/14. At that limit even lower MP cameras cannot resolve the detail because they lack the resolution, all they see is a bit of blur, but so does the 50 MP camera, just more accurately.
Diffraction itself is not affected by sensor resolution. It is an optical, lens aperture related, phenomenon. All that the sensor does is either resolve the detail there is, or not, and higher MP sensors are better at that.
Cheers,
Bart