Both have cancer-fighting properties, but they affect our bodies in different ways. Raw garlic contains allicin, which has potent anticancer effects (28). Cooking garlic can produce other beneficial compounds, such as S-allyl cysteine. To maximize health benefits, combine both forms in your diet.