J987 has
10 outs.
J972 has
11 outs.
The gutshot straightflush draw provides an additional out to the 10 full house/quad outs of J972. It doesn't add an out to J987, since the 8[img]/images/graemlins/spade.gif[/img] would be an out to a full house without the straightflush draw.