与其 + [A],不如 + [B]
[subject] + 与其 + [A],(还) 不如 + [B]
与其 introduces the option being turned down; 不如 introduces the better one. It is a reasoned recommendation, neutral to formal, and the speaker is often talking themselves or someone else into the second choice.
还不如 or 倒不如 make the second clause stronger: "it would actually be better to".
The rejected option always comes first, after 与其. English "I'd rather B than A" puts the preferred one first; turn it round.
宁可 puts the chosen option first and stresses the cost of choosing it. 与其…不如 puts it second and presents it as the sensible choice.