Something quite close to your idea is practised, though, and it is worth knowing about because the framing is different.
The real technique is disposability, not detection avoidance. Run a browsing or document-opening environment that is rebuilt from a clean image every session, so anything that gets in has a lifetime measured in hours and no access to anything persistent.
That is how public access terminals are usually run — boot from a network image, keep no writable local disk, discard everything at reboot. Some security-focused desktop systems apply the same principle per application, giving each one its own compartment.
Note the difference from your proposal: it does not rely on malware choosing not to run. It assumes malware does run, and makes that fact stop mattering. Defences built on the second assumption survive contact with an adaptive adversary; ones built on the first do not.