This question already has an answer here:
Suppose I have these two lenses: - Tamron SP 24-70mm f/2.8 Di VC USD G2 Lens - Tamron 28-300mm F/3.5-6.3 Di VC PZD
And suppose I have used them both on the same full frame camera, in the same tripod setup to take the exact same photo using these exact settings on both lenses - focal 50mm - Aperture F5 - shutter 1/400 - ISO 100
should I get the exact same photo quality in both images because all settings are the same? or there will be a difference in photo quality because of the difference in lenses?