The surgery is much more risky than the pill and is guaranteed to reduce the woman’s fertility, at least as i understand it.
To pick the surgery instead because it might be slightly more moral according to some scholastic logic is, in my opinion, literally casuistry of the worst kind.