Doctor says I should remove my gallbladder, need second opinion?

So I’ve been having stomach pain across my abdomen, especially when my stomach is empty. My belly also twitches but I’m guessing that’s what happens after giving birth. I’ve been taking anti acids that the Dr prescribed and it feels a little better. They did an ultrasound on my gallbladder to see if that’s an issue and there was minimal sludge but not significant. They’re saying that I should remove my gallbladder anyways. But what if it’s just an ulcer or h pylori? Shouldn’t I concentrate on trying to cure that before heading into surgery? I’m very poor and can’t afford such a procedure. Is it necessary?