You asked

Yongnuo yn50mm f 1 8 df dsm vs meike 50mm f 1 8 stm?

The two lenses are nearly identical on paper. Both are 50mm f/1.8 autofocus primes for full frame, with no stabilisation. On a full-frame body each gives a natural, slightly tight view, and on APS-C each frames like 75mm and gives the depth of field of about f/2.7. The Yongnuo YN50mm f/1.8 DF DSM fits Sony E and Nikon Z. The Meike 50mm f/1.8 STM fits Sony E, Nikon Z and L-Mount.

The mount is therefore the main difference. If you shoot Sony E or Nikon Z, either lens works, and the choice comes down to price, which this answer can't quote. Check each lens page's price section for the current figures and the day they were checked. If you shoot Leica SL or Panasonic Lumix S, the Meike is the only one of the two that fits. Its page lists those cameras, so you can confirm your body there.

Either lens is a good first portrait lens for people, food and low light. The site's portraits guide calls the 50mm the cheapest great lens in photography. Neither lens stabilises the image, so in dim light a fast shutter speed matters more than the camera's stabilisation. Pair either one with a full-frame body, and remember that on APS-C the lens behaves like a 75mm.

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