surely velocity and elasticity need to go into that calculation as well
https://en.wikipedia.org/wiki/Impact_depth
When the object is near supersonic spèeds (throught the various materials) even the strenght of the materials becomes very secondary. A meteor made of sand makes the same crater as one made of stone.