If I understand physics correctly, A nuke displaces the atmosphere at supersonic speeds and that is what causes the damage. Would a nuke in space where there is no atmosphere even do damage to the asteroid?
You are right that there would be no atmosphere to heat and expand. The material in the spacecraft would vaporize and create some blast effect and some asteroid material would vaporize and create blast. I am not sure this would be better than a kinetic strike.