Pseudoephedrine is a decongestant to relieve the nasal/sinus congestion.
If it helps with your coughing, it’s because it’s stopping the postnasal drip, not suppressing the cough as DXM would by shutting down the cough reflex.
Two different, but very similar use cases. DXM is a god-send in the appropriate time.