It is mostly used in the latter sense.
He just keeps on bugging everyone and doesn’t know when to go away, like a turd that won't flush.
Guy 1: I don’t want him to come with us!
Guy 2: So why don’t we ignore him, and he might take the hint.
Guy 1: I doubt it, he’s like a turd that won't flush.