You asked
Yongnuo yn50mm f 1 8 df dsm vs 7artisans af 50mm f 1 8?
The two lenses are very close. Both are 50mm f/1.8 primes for full-frame cameras, both have autofocus, and neither is stabilised. They frame and blur the background the same way, so the choice comes down to mount. The Yongnuo YN50mm f/1.8 DF DSM fits Sony E and Nikon Z. The 7Artisans AF 50mm f/1.8 fits those two and also L-Mount, so it covers Leica SL and Panasonic Lumix S bodies as well.
If you shoot Sony or Nikon, either lens does the same job. The Yongnuo is the natural choice there, since the 7Artisans offers you nothing extra on those mounts. If you have a Leica or Panasonic body, or might switch to one, the 7Artisans is the only one of the two that fits.
On an APS-C body, both lenses frame like about 75mm, and f/1.8 gives roughly the blur of f/2.7 on full frame. That suits portraits, where the guide calls a 50mm f/1.8 one of the best value lenses you can buy. For dim light and moving subjects, the f/1.8 aperture and a full-frame sensor matter more than stabilisation, which neither lens has. A stabilised camera body can help steady handheld shots in low light.
The guide can't say which lens costs less, because these pages don't include a price section, so check current shop prices yourself. Prices change, so compare them just before you buy. For a first lens setup, see your first lenses.
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}.