You asked
Canon ef 35mm f 2 is usm vs canon ef s 24mm f 2 8 stm?
The 35mm f/2 IS USM and the 24mm f/2.8 STM suit different bodies, so your camera matters most here.
The Canon EF 35mm f/2 IS USM is the stronger lens for dim light and moving subjects. It is faster at f/2, and it has image stabilisation. Stabilisation steadies the camera, not the subject, so the wider aperture and the full-frame sensor do more for low-light shots of people. On an APS-C body it turns into a tighter, roughly 56mm-equivalent view, which is a reasonable portrait length. It fits full-frame bodies such as the EOS 6D Mark II, and the guide's portrait lens advice explains why a 35mm works well for environmental portraits.
The Canon EF-S 24mm f/2.8 STM is the lighter, simpler choice for an APS-C camera. It frames like about 38mm, which suits everyday walking-around shots and general travel. It is slower at f/2.8, has no stabilisation, and won't mount on full-frame bodies. Pair it with an APS-C body such as the EOS 90D or 850D.
If you own or plan to buy a full-frame body, choose the 35mm. If you shoot APS-C and want a wider everyday view, choose the 24mm. For a first lens on APS-C, the guide's starter lens list suggests a fast standard prime, and the 24mm covers that role on a crop body while staying light.
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}.