It is difficult to maintain a calorie deficit, but it is also impossible to gain weight while in one. There are good calories that provide a lot of other nutrition, and bad calories that offer nothing to your body, but that doesn’t undermine the fact that you can’t gain any long-term weight as long as you keep your total calorie intake (good and bad calories) below your calorie expenditure
It is difficult to maintain a calorie deficit, but it is also impossible to gain weight while in one. There are good calories that provide a lot of other nutrition, and bad calories that offer nothing to your body, but that doesn’t undermine the fact that you can’t gain any long-term weight as long as you keep your total calorie intake (good and bad calories) below your calorie expenditure