Garlic
garlic is an allium, which means that it’s meat interacts with heat and volatility similar to that of an onion or shallot. When you slice into a clove of garlic you are causing cell walls to rupture, creating allicin which gives it it’s bite. This is why recipes will often call for you to break your garlic down as fine as you can.
To that end if a recipe I write uses minced garlic you can safely use a microplane to achieve greater effect with less effort (but be sure to wash your microplane quickly after or you will create garlic cement). Some people use a garlic crusher and if you have one and like it that’s awesome but every time I’ve ever tried one it’s been a pain in the ass to use and clean. Larger slices or whole cloves are great for getting a cooked garlic flavor, which is elaborated on later.
Once you have broken down your garlic the allicin quickly starts to break down causing the pungency to turn slightly acrid. Luckily this can be avoided by trapping the garlic in some kind of fat (butter, mayo, and olive oil being popular choices). I like to microplane garlic directly into mayo & sour cream based sauces to add a bite and freshness alongside the deeper savory flavor provided from garlic powder, but i’ll have a separate note for that at some point.
Cooking
Garlic’s pungent bite quickly softens to a deep rich savory flavor when cooked, and taking it to different stages will give you different ratios between the two. I most frequently work with raw garlic minced or grated and then cook slices or whole cloves to get that unctuous quality without worrying about burning things.
When cooking whole cloves I like to keep the skins on and fry them in a pan with a little bit of oil (usually canola or olive) until deep brown on all sides. sliced garlic is great for tossing in a stir fry or sauce and letting it hang out for a while to turn lightly golden brown, I’ll throw them into the pan with onions I’m caramelizing as the water leeching from the onions will help prevent the garlic from burning.