You asked
Yongnuo yn50mm f 1 8 da dsm vs sony e 50mm f 1 8 oss?
The two lenses are closely matched. Both are 50mm f/1.8 primes made for APS-C sensors, and both fit Sony E-mount bodies, so the choice comes down to a few differences.
The Sony E 50mm f/1.8 OSS is the stabilised one. Its optical stabilisation steadies the camera, which helps with slow shutter speeds for still subjects. It fits only Sony E bodies. The Yongnuo YN50mm f/1.8 DA DSM has no stabilisation, but it also fits Fujifilm X bodies, which makes it the sensible pick if you shoot Fujifilm or might switch. Its autofocus is listed as yes, as it is on the Sony.
Both give the same framing and background blur. On APS-C, each is like a 75mm lens on full frame, and f/1.8 gives about the depth of field of f/2.7 there. For portraits, that is the classic tight, flattering view that the site recommends as one of the best single lenses for people. For dim light and moving subjects, the shared f/1.8 aperture and the APS-C sensor matter more than stabilisation, since stabilisation does nothing for a moving subject.
If you shoot Sony, the Sony lens is the one to choose for its stabilisation. If you shoot Fujifilm, the Yongnuo is the only one of the two that fits. The guide's portrait advice explains why a 50mm is a good first portrait lens. The focal length converter shows how the crop factor changes the blur you get.
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}.