generally, you have to be avoiding particular vitamins / minerals for an extended period to end up with a deficiency. (b12 is maybe an extreme example, but a person could have liver stores of b12 that can last them years of no b12 intake before developing a deficiency!)
so to "maximise nutrition", it's more important to put the emphasis on a varied diet, rather than on eating the freshest of fresh foods.
that could change if you have specific problems with absorbing particular vitamins or minerals, but if that's not the case, i'd say throwing away edible food is being overly cautious.
editing to add: happy cake day, activistPnk!