You would think there would be some research on which nsaid is safest for the gi tract. I know someone suggested it might be Relafen, but I can't remember where I read that and what the rationale was.
My experience was: if the NSAID was effective on the inflammation and pain, then it gave me side effects (usually gastritis and edema). The more effective, the worse the side effects. And those that didn't give me much side effects also weren't very effective.
That kind of made sense to me and my doctor. Either they affected me, in both good and bad ways, or they didn't.