Gynecologists provide critical support for breastfeeding by offering guidance on proper techniques, addressing any difficulties such as latching problems, and recognizing signs of conditions like mastitis. They also educate mothers about the benefits of breastfeeding for both the infant and the mother.