Genetic fallacy
The genetic fallacy (also known as the fallacy of origins or fallacy of virtue) is a fallacy of irrelevance in which arguments or information are dismissed or validated based solely on their source or origin rather than their content. In other words, a claim is ignored or given credibility based on its source rather than the claim itself.