Think of the lens as a link in the chain that produces the image. That chain might include
1. The skill of the photographer
2. The purpose of the shot
3. Camera shake (or lack of it)
4. ISO setting
5. Whether or not a large print will be made
6. Sensor size
7. Quality of lens
There are probably more, but I'm sure you get the idea.
Many years ago, there were no zoom lenses, and then (I think) the Zoomar came out in about 1960 and was an instant success, although the zoom range was only 36-82mm and the quality was atrocious. Most "serious" photographers had a very snobbish attitude towards this lens, and with good reason, and some still have that attitude, even though good zoom lenses today are very close to the quality of good prime lenses.
But, the zoom "kit" lenses are made down to a price, some are better than expected and some are hopeless, but they are all now much better than the pre-digital ones, which were designed for use with 35mm film cameras, which only had very indifferent image quality capability compared to modern digital cameras.
Even a kit zoom lens is capable of decent results (in good light at least) provided that it isn't an obvious weak link in the chain. Take the Nikon D810 as an example - there are many more examples but that's a camera that I know- Full frame, very high resolution, all of which is wasted if fitted with anything other than a very good lens.
I used to be one of the people who had both zoom and prime lenses but preferred prime lenses, they have distinct advantages in terms of image quality at large apertures, they cost a lot less than equivalent-quality zoom lenses, they're smaller and lighter, lens hoods are more effective with them and they force us to think carefully about the composition of the shot, camera angle, camera height and so on. I used to use a "nifty fifty" a lot, but eventually I wore it out and didn't replace it, and I don't miss it.
About 25 years ago I bought a 14mm Nikon lens, costing over £2,000, for a specific job (which more than paid for the lens). Today though I'd buy a wide-angle zoom, and I would let Photoshop deal with the lens aberrations, including the inevitable optical distortions, and spend a lot less
So, if you want to be a purist - and there's nothing wrong with that - then use prime lenses. If you want to be pragmatic - and there's nothing wrong with that either - then use zooms instead.