Only young modulus and poison’s ratio are needed for the bodies in contact. The stresses for both bodies are the same for equal materials, for different materials they can differ.