It's worth noting that many allergy meds (like diphenhydramine) are anticholinergic, but only ones which pass the blood-brain barrier are linked to cognitive decline. So newer allergy meds like cetirizine and loratadine are better.
Your link says anticholinergic use later in life has been linked to cognitive decline, not that use by young people results in cognitive decline later in life.
I linked to Wikipedia, but I originally read the abstract of a different study, which might have examined diphenhydramine specifically rather than many anticholinergic drugs. The abstract of the article cited on Wikipedia makes it clear that it's a cumulative effect, and that they studied outcomes in older adults. So I think Wikipedia describes the research incorrectly.
For those people who feel groggy or nauseous/headachy in the morning after Melatonin, try taking 0.3mg. You might find it has the same effect with less pronounced side effects.
I also started taking 1mg melatonin an hour before I want to sleep. That works wonders for me.
https://slatestarcodex.com/2018/07/10/melatonin-much-more-th...
... and, umm, mindfulness, I guess.