Some thoughts about how heat affects the flavor of the garlic - If you cook garlic on high heat (even if it doesn’t burn), it ends up with a stronger, sharper taste that can take over the whole dish. The flavor is bold , which can overpower the spinach. Slowly cooking the garlic in low heat will produce a mellows the flavor down.