Logical fallacy
Circumstantial ad hominem
Treats a speaker’s circumstances, affiliation, bias, or stake as by itself sufficient to reject their claim or reasoning.
Examples
He rents an apartment, so his argument about street noise is false.
Her family owns a bicycle shop, so her traffic counts must be wrong, regardless of the independent records.
He rents out apartments, so his independently checkable arithmetic about vacancy rates is false.
A similar case that can be sound
The only evidence for the result is a seller’s uncorroborated testimony about their own product, so the buyer requests independent evidence.