Do you have a citation for this? Here's one saying almost the opposite:
> Carbohydrates, protein, fats, and alcohol—the dietary macrocomponents—are the sources of energy in the diet. Under normal circumstances, more than 95% of this food energy is digested and absorbed from the gastrointestinal tract to provide the body's energy needs. Studies of normal and overweight subjects have not shown any significant differences in the proportion of food energy absorbed. In some underweight subjects, however, malabsorption of nutrients is an important factor.
People do extract pretty much the same amount of effective calories form identical foods, it’s basic evolution as more efficient eaters would’ve outcompeted the rest a long time ago.
So unless you have celiacs, an onset of diabetes or some belly buddies you aren’t going to be absorbing less calories than someone else.
And yes, I do exercise a fair amount and all that, but I also seem to be quite efficient at extracting energy from food. I tend to joke that at least I'll survive longer after the apocalypse.
I think basal metabolic rate can vary significantly. This might explain what you're observing in a more biologically plausible way. My (imperfect) understanding is that it's partly genetics and partly in your control via strength training.
But I think you're doing yourself a disservice if you're discounting too easily the possibility that you're not comparing your eating and exercise with theirs accurately. How confident are you that you're actually eating no more calories than they are in a typical week? You might see them eat a huge amount when you're together, but maybe that's their "cheat" day, maybe they don't snack or drink alcohol as much as you do, etc. I think a lot of people are fooling themselves when comparing to others.
[1] not a recommended weight loss plan; side effects can include stress fractures, scurvy, IBS, and on and on.
The "magic" that people refer to with keto, etc is that some things can have effects that cause our bodies to absorb less of the calories that were put into our mouths.
This is one of many reasons why some people lose weight more readily than others given identical diets and exercise regimens.