I know there have been a lot of threads about this topic, but I haven't found one that answers my specific question. So if we have a case of two objects that stick together after colliding, with no external force present, then the momentum of the system is conserved. From that one can calculate the velocity of the combination of the two objects and use that to find the final kinetic energy (K.E.). We also know the initial K.E. as the sum of the K.E. of each object. The difference K.E.(final) - K.E.(initial) can be calculated and it is negative as some K.E. has been converted to heat. An example with equations can be found in @Bob D's answer here: Why do objects always stick together in perfectly inelastic collisions
What I'm wondering about is that it seems to me that if a variety of objects were used, all with different physical properties governing their deformation (elasticity, stiffness or whatever is appropriate), then that should affect how much K.E. is lost to heat. But the equations give one particular answer for K.E. loss. How do they "know" to do that without detailed knowledge of the objects' composition?