But in any case, the comparison with a hypersonic missile here can't be made:
1. hypersonic missiles have a guidance system, while asteroids do not. If an asteroid is moving in a certain direction, it will continue to do so until acted upon by an external force.
2. hypersonic missiles operate in the atmosphere, while asteroids do not. The speed of sound is entirely irrelevant to asteroids.
3. because of these two things, it is not hard to intercept an asteroid.
Given the difference in velocity (and F=mv^2), it may even be possible to deflect an asteroid by impacting it with an inert lump. This was actually tested in the DART mission[1], where a 610kg object impacted an asteroid at 6km/s and significantly changed its orbit.
[1]: https://en.wikipedia.org/wiki/Double_Asteroid_Redirection_Te...