This feels like getting taught in school not to cite Wikipedia when the actual digital literacy challenge is deeper— learn where the info comes from and to critically think.
You should look to an encyclopedia for information about all manner of topics. Someone did the work of organizing, verifying, and cross-referencing the information from disparate sources for you. It doesn't mean the information is untrustworthy, if that were true the paper you wrote in class would be untrustworthy which is absurd, no?