"The process by which your body converts food into energy", sounds more accurate.
"The amount of potential energy contained in food", is basically a long way of saying - Calories.
So, I would go with the one that talks about the process of converting food to energy.