It is important to research what is needed for a dogs nutrition, but commercial dog food certainly does mot always provide a healthful diet, just because it is marketed by a pet food company. A lot of dog food is made using corn as a main ingredient, and this is not good for a dog at all. You have to read what all the ingredients are, as well as the amounts of each ingredient, to try and decide what is healthy.
Commercial dog food is actually a pretty new thing for dogs to eat, considering all the thousands of years that dogs and humans have lived together, and for almost all of those years, dogs simply ate the scraps fed to them after the people were done eating, plus whatever wild animals they caught and ate. People usually killed and ate wild game, fish, and vegetables they grew, and dogs had the leftovers.
Only in the last 100 years have there been factories that made and sold food, and then started using the scraps to market as pet food.
Pet food companies donate to veterinary schools, so vet clinics advertise and promote dog food from those companies, but that does not mean that it is healthier for our pets than fresh wholesome food that we cook for them ourselves.