We introduce a new channel, which consists of an interference channel (IC) in parallel with an interference relay channel (IRC), to analyze the interaction between two selfish and cognitive transmitters who compete for a relay implementing the amplify-and-forward protocol. It is shown that whatever the relay location there is always an equilibrium in the resource allocation game where the users selfishly share their power between the IC and IRC. The uniqueness and determination of this equilibrium is analyzed for two cases: the relay amplification gain is fixed; the IRC direct links are negligible. We show how to exploit this analysis to optimally locate the relay either in terms of individual rate or system sum-rate. Simulations are provided and show, in particular, how the users' selfish behavior leads to sharing the space in regions where the relay is used by only one user or not used at all.