Top degree Ext-groups and relatively supercuspidal spectra