Of course it is the lens that causes diffraction, not the sensor. There would certainly be diminishing returns with a high resolution sensor, but never a poorer resolution. In practice, we rarely see the effects of diffraction unless we are cropping hard. The effects are present, but not very...