するくらいなら

rather than do; if it comes to doing

→ 為る
phrase Uncommon #17,820
rather than do; if it comes to doing Used to compare an undesirable action with a preferred alternative, often translated as “I would rather ... than ...”. The verb before くらいなら can be any verb, such as 不正をするくらいなら (rather than cheat).
JA: 私はそんな不正をするくらいなら死んだ方がいい。
EN: I would rather die than commit such fraud.

私は盗みをするくらいなら餓死したほうがよい

I'd rather starve to death than steal.

私はズルするくらいなら失敗したほうがましだと言った

I said I'd rather fail than cheat.

— バジュランギおじさんと、小さな迷子 (2015)

降伏するくらいならを選びます

I would rather die than surrender.

この会社でそんな仕事をするくらいなら会社をやめる

I’d rather quit than do that kind of work at this company.

私は彼と不幸な生活をするくらいなら独身でいる方がいい

I would rather stay single than live an unhappy life with him.

私はそんな不正するくらいなら死んだ方がいい

I'd rather die than engage in such dishonesty.