Probably ginger, but I use a little of both. Here is a video about a study in humans on the most anti-inflammatory spices.
https://nutritionfacts.org/video/which-spices-fight-inflammation/
Take it on an empty stomach though as the high polyphenol content it very good at binding with minerals, this might be why it tends to stain teeth, but it could lead to mineral deficiencies if in large enough doses for a long time.
I say ginger because a study showed it could affect many more aspects of inflammation then clove or turmeric or rosemary, but turmeric is also powerful. I make a tea out of these herbs and strain it through a coffee filter but I suppose putting it in tea bags could also work. the woody fiber form turmeric and ginger typically upsets me, that's why i filter it. You could also buy extract in supplement form, but dont buy turmeric extract as a supplement, it won't be absorbed barely at all and all that will interfere with your mineral absorption, the water extract as a tea tends to only provide water soluble components which are more easily absorbed, as well as additional substances that aid the absorption of curcumin. The extracts try to provide only curcumin. Also, black pepper helps the body absorb curcumin so i add that to the tea as well.