I see this question a lot on Reddit and I always answer the same way, with science.
You can change your eating habits and exercise, staying at your TDEE to avoid weight gain. But it's super hard because it's not just a lifestyle issue, it's about metabolism.
Take a look at this study...