A good proxy for this general capacity in a human body from organic digestible material is kcal.
What I'm getting at is that measuring the 'energy' of food is meaningless. It's a waste of time at best, and when someone is mislead into thinking that they can eat 100 kcal of sugar (if we can even accurately determine that!) instead of nutrients then it can even be harmful.
You can quantify this work
In the human body? How do you propose to do this?
food isn’t really what we eat either
I'm pretty sure we generally eat food. We surely don't eat energy.
If you have an alternative to this
Let's start by not talking about energy at all. It's biology and chemistry.