My experimenting with garlic on eggs was that generally speaking it overpowered their subtler flavour, but it does work well if only a very small pinch of mild garlic is used and it is presoaked in a teaspoon of butter or olive oil then added to the raw eggs and they are cooked simultaneously.