Fix ICE from #105101 Fixes #105101 Rather than comparing idents, compare spans, which should be unique to each variant.