expression, auxiliary
Attaches to the dictionary form of a verb to express that the speaker would prefer an extreme alternative over doing that action. Often used with ~ほうがましだ or similar comparative endings.
あんな人に謝るくらいなら、死んだほうがましだ。
I'd rather die than apologize to someone like that.
毎日こんなに働くくらいなら、転職したほうがいい。
If I have to work like this every day, I'd rather change jobs.