The rule that governs your pixel size was not devised for microscopes. In 1924 Harry Nyquist, working at Bell Telephone Laboratories, was asked a commercial question: how fast can distinct pulses be pushed down a telegraph line before they smear into one another and the message becomes unreadable? His answer, published as Certain Factors Affecting Telegraph Speed, was that the maximum rate of distinguishable pulses is twice the bandwidth of the line. Push harder and the pulses do not merely degrade; they become genuinely ambiguous.
Claude Shannon gave the result its general form in 1949, and Vladimir Kotelnikov had reached it independently in the Soviet Union in 1933. What began as a question about how many words per minute a wire could carry became the sampling theorem, and it applies to any band-limited channel whatsoever. A microscope objective is such a channel. That is the whole of the connection, and it is exact rather than an analogy.