Calories are not the same thing as food, so the question as stands can’t be answered.
Food is digested by the body through a series of complex processes that start in the mouth and stomach, but mostly take place in the small intestine, which gets flooded by half a million enzymes when food enters it through the pyloric valve.
To absorb food, the proteins have to be broken down into amino acids, the carbohydrates into simple sugars, and the fats into fatty acids. That’s the job of the enzymes. (Most of what happens earlier is physical breakdown into smaller pieces, not a chemical breakdown.)
Those 10,000 calories in the OP would all be broken down and absorbed if your body had enough time to process them. Food moves very slowly through the intestines, taking hours to get to the end of the small intestine, to give your system a better chance to do all the necessary processing. If the timing is right, then all 10,000 calories in the food will be absorbed into the body.
If the timing is off, then the food leaves the body unprocessed. There are two routes: up, meaning vomiting, and down, meaning diarrhea. Vomited food obviously is not chemically broken down and absorbed. That’s actually the more likely route if you devour too much food in too little time.
If you can keep the food down but overwhelm the system, then undigested food will leave the small intestine and move on to the large intestine, the colon. Fiber, which is normally indigestible, does this as a matter of course. Too much fiber in the diet can lead to gas and diarrhea because it is hydrophilic: it retains water rather than allowing the water to be absorbed as it normally is. Too much undigested food will likely have the same effect.
What percent of the calories will this be? Again, this is unanswerable, because it depends completely on what foods you eat over how long a time and what the state of your intestines are.
But the body is marvelously efficient. If you give it time to digest food, it will do so to a very high percentage of the original calories. Otherwise, the food and its caloric content is rejected, one way or another.