You asked

Yongnuo yn17mm f 1 7m vs panasonic lumix g 20mm f 1 7 ii?

The Yongnuo and the Panasonic are close rivals. Both are Micro Four Thirds primes with an f/1.7 maximum aperture and autofocus, and neither is stabilised. Both fit the same cameras, from the OM System OM-5 Mark II to the Panasonic Lumix GH7. Because they share the aperture, they give the same brightness and the same depth of field: the guide's figures put each at about f/3.4 on full frame terms. So the choice comes down to framing.

The Yongnuo YN17mm f/1.7M frames like 34mm on full frame, a comfortable wide-normal view for street, travel and rooms. Its wider view suits scenes where you want to fit more in, but very close subjects get exaggerated. The Panasonic Lumix G 20mm f/1.7 II frames like 40mm, closer to a standard look that feels natural for portraits and everyday shots.

For dim light and moving subjects, both are fine because the wide f/1.7 aperture matters more than stabilisation. Neither lens steadies the subject, so keep shutter speed up. This site doesn't describe build quality or other differences, so this comparison rests on framing alone.

If you mostly photograph people, the guide's portrait advice favours a slightly longer view for flattering faces, so the Panasonic is the more natural pick. For general and street work where you want more of the scene, the Yongnuo's wider view is the better match. For the sensor sizes behind these numbers, see that page. The focal length converter explains how the crop factor affects depth of field.

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}.