This phrase means you would rather do something else (B) than do a bad thing (A). It shows you really dislike option A.
に、。
If it means bowing my head to a person like that, I'd rather quit the company.
、。
Rather than release an incomplete product, we should postpone the release date.
に、へ。
If it means I won't be able to see my friends, I'd rather not go to a university in Tokyo.
、。
The food at that restaurant was so bad, it would have been better to eat nothing at all than to eat it.
、。
I'd rather be single for life than marry him.