During decline you actually have a bit less movement into shoulder extension due to the positioning of the torso in the decline position. Conversely, during incline bench you have a higher degree of shoulder extension. So in a sense of "shoulder extension antagonistic movement", decline bench may be better.
But again, it all comes down to grip (close grip = more extension, wider grip = less extension) and technique as well. The biggest thing is keeping the shoulder packed and scapula retracted/depressed at all times to maintain proper GH joint positioning and stability for the shoulder.
If you are getting some shoulder pain during close grip bench, I would recommend trying some push up variations with a variety of hand positions and see if it replicates the discomfort. It will also give you shoulder some (probably much needed) closed chained movements and allow for free, unabated scapular movement.