better the devil you know than the one you don't know
When faced with two options, it is better to choose the more familiar one, even if it is undesirable. A: "Why don't you just quit your job if you're so miserable?" B: "Who knows if a new job will be any better! Better the devil you know than the one you don't know."