In a camera body, it contains the capabilities of the camera. For example, its sensor, megapixel, noise, iso, white balance performance, etc. Some better than others.
As for the lenses, there is the Leica, Carl Zeiss and Nikons and Canons, etc. Consensus is that Leica and Carl Zeiss have a slight edge over the others. So again some are better than others.
Obviously both camera capabilities and lenses are important to get good image quality (i.e. good photos). But , which is more critical ? Where should my money go more to; body or lenses ?