You asked
Canon rf 45mm f 1 2 stm vs yongnuo yn35mm f 2 df dsm?
The two lenses answer different needs. The Canon RF 45mm f/1.2 STM is the faster lens. Its f/1.2 aperture gathers roughly one and a half stops more light than f/2, which matters most in dim rooms, evening events and with moving subjects. It also gives much shallower backgrounds. On full frame it frames a natural, slightly tight view, good for people. It gives up range: it only fits Canon RF bodies, it weighs about 350 g, and it isn't stabilised.
The Yongnuo YN35mm f/2 DF DSM is the wider, more flexible choice. It fits Sony E, Nikon Z and Canon RF mounts, so it can follow you if you switch systems. At 35mm it takes in more of the scene, which suits environmental portraits and groups. At f/2 it is a weaker low-light tool than the Canon, and it isn't stabilised either.
For portraits in dim light on a Canon RF body, the 45mm is the stronger pick. For a wider view, or if you might change systems, the Yongnuo is the better buy. A fast 45mm needs a full-frame body to shine. The Canon EOS R6 Mark II fits it and suits low-light work. If you use an APS-C body, the 45mm frames like 72mm there, which is tight for most people shots. The portrait guide explains how focal length shapes faces, and the sensor guide explains how crop factor changes the view.
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}.