How do you compare two spectrograms?
You could subtract the two waveforms and get the spectrogram of the difference. In theory it should be the same as what you asked for. To do this you need to invert one of the tracks and mix(add) them in equal volume.