No matter how many times I edit and re-paste that link it continues to be broken. Sorry.
Psyshock calculates the users special-attack stat and the targets defence (rather than special defence) stat to do deal damage, and that could be used to breach special-defence walls. But yes, ghost-types...