I remember coming across a line "They may be a-holes, but they are our a-holes." It's used to describe something you don't like, but also don't want others to take away. One example is big global corporations. Americans might hate them, but Americans also don't want to see them move out.
I googled this phrase and saw some sporadic usages. But it doesn't seem very popular. Is there a more popular version that expresses the same sentiment? I don't mind some vulgarity -- I think it actually makes this phrase rather powerful!