Good question.
I don't think it kills off all bacteria. I often use raw garlic for fermented foods like kimchi and fermented garlic (garlic, salt, and
water). They create a lactic ferment quite quickly.
Kimchi has some amazing probiotic qualities, and garlic is an essential ingredient for that... so my uneducated guess is that it is gut friendly.
I wonder if fermented garlic is better for the gut than raw garlic. Sometimes raw garlic gives me stomach stabbies, but fermented garlic goes down fine.