I can only speak from my experience.
I had several of those "I can do this without surgery" moments throughout my life. I first started down the path of surgery in 2013/14. I was doing the Tim Ferriss Slow Carb Diet (6 days/wk, eat only beans/meats/veggies, 7th day is cheat day) and having great success. I explained what I was doing to the bariatric surgery coordinator and her response (paraphrased) was, "That's nice, but you won't be able to do that post-surgery." I didn't want to hear that, figuring that I had already lost 40+ pounds this way and cancelled my appointments. I ended up losing roughly 150 pounds on that diet, but gained it all back. Why? It reinforced binge eating habits and didn't set me up for future success.
Like a lot of overweight people, I thought my next lifestyle change (clean eating! intermittent fasting! keto!) would be the one that allowed me to lose the weight and keep it off. I finally realized that I was only fooling myself. It takes an incredible amount of discipline to lose weight and keep it off without surgery. You have to commit to eating a certain way for the rest of your life; I have yet to meet someone who did a diet for 6 months, lost the weight, went off the diet and kept the weight off. I reached a mental state where I had two choices: 1) continue living my life as I had been or 2) making a truly radical change, the change most likely to keep the weight off. I chose Option 2, because I owed it to myself, my wife and my kids to be the healthiest person I could be. I do not regret my choice.
But while I do not regret my choice, I don't go around telling other people to do it. I don't think I would have succeeded in 2013 the way I have today with the surgery. In 2013, I would have seen it as "I do a surgery, I eat less, I lose weight, winner, winner, smaller chicken dinner." That is a set up for long-term failure. Now, I see it as "I have been given a great chance to live a healthy life and I need to take advantage of it." Until you reach that mental state, you are not ready to succeed with this surgery.