Has anyone here tried GLP1s? What made you decide for surgery over medication?

I am currently on GLP-1s, but my doctor has offered me bariatric surgery due to a BMI of over 54.

I did not know which way to go with this, I am losing a little weight on GLP-1s but the only worry is that as soon as it is stopped I will gain it back.

Did you ever have to choose between the two, and what made you ultimately decide in favour of surgery?