Tar-with-the-same-brush Definition

verb

(idiomatic) To characterize using the same undesirable attribute, especially unjustly.

Wiktionary