Is excretion always necessary?
Yes; there are byproducts of metabolism and maintaining the body that must be excreted, which has nothing to do with taking in unneeded nutrients. For just a few examples, urea is produced normally as part of the constant building and break down of proteins, but must be excreted, the brown color of feces comes from the breakdown of red blood cells, and a substantial weight of the feces is gut bacteria, some of which are necessary for proper digestion of some of the nutrients you take in.