You asked
Nikon af s 20mm f 1 8g ed vs nikon af s 24mm f 1 8g ed?
The two lenses are close relatives. Both are Nikon F-mount primes with f/1.8 apertures and autofocus, neither is stabilised, and both fit the same cameras, from full-frame bodies like the D750 and D850 to APS-C ones like the D7500. The real difference is the angle of view. On full frame, the 20mm is the wider of the two, and on APS-C it frames like 30mm. The 24mm frames like 36mm on APS-C.
Choose the 20mm if you want more of the scene in the frame: interiors, architecture, landscapes, or environmental shots where the setting matters. It's also the better fit for vlogging, since the video guide suggests a wide view of about 16-20mm full-frame equivalent at arm's length. The trade-off is that wide lenses exaggerate whatever is close to the camera, so faces and near objects look more distorted.
Choose the 24mm if you mostly shoot people, street, or travel and want a more natural view with less distortion. It sits closer to the standard view that the lens guide recommends as a first prime, although the guide's pick there is a 50mm. For portraits, the portraits guide favours 35mm for environmental shots, so the 24mm is a little wide for faces, but it works for group and context shots.
Both lenses are fast enough for dim rooms, so choose by framing, not by low-light performance. If you'd like a flexible single lens for travel, the 24mm is the easier everyday choice. If you want a dramatic wide view, go for the 20mm.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.