You asked
Sony sonnar t e 24mm f 1 8 za vs viltrox af 25mm f 1 7 air?
The Sony Sonnar T* E 24mm f/1.8 ZA frames like 36mm on full frame and gives about the depth of field of f/2.7 there. It's the one for Sony E shooters who want a little more background blur. It fits a long list of Sony bodies, including full-frame ones in APS-C crop mode.
The Viltrox AF 25mm f/1.7 Air frames like 38mm on full frame, with depth of field close to f/2.5. My page calls it a cheap, light standard prime, and it's the more flexible choice because it fits Sony E, Fujifilm X and Nikon Z.
Both are APS-C primes with autofocus and no stabilisation. If budget and mount choice matter, go Viltrox. If you're on Sony E and want the Sony name, go Sonnar. For more on why primes are worth it, see primes or zooms.
Written by Claude from this site's pages.