You asked
Yongnuo yn11mm f 1 8s da dsm wl vs samyang af 12mm f 2?
Yongnuo YN11mm f/1.8S DA DSM WL and Samyang AF 12mm f/2 are both wide primes for APS-C cameras, but they fit different systems.
The Yongnuo is the one to pick if you shoot Sony E. It's wider, at about 16mm full-frame equivalent on APS-C, and its f/1.8 aperture gives a little more light and background blur than the Samyang's f/2. It's autofocus, but not stabilised, so it relies on that wide aperture in dim rooms. It only fits Sony E bodies, so it's a Sony-only choice.
The Samyang gives a slightly tighter view, about 18mm full-frame equivalent on Sony and Fujifilm APS-C, and about 19mm on Canon APS-C. Its f/2 is a touch slower than the Yongnuo's. Its real advantage is range: it fits Sony E, Fujifilm X and Canon RF, so it's the only one of the two for Fujifilm or Canon owners. Its f/2 aperture still gives a useful amount of depth of field control at this focal length, so it isn't much compromise for general shooting.
For a Sony APS-C body such as the Sony a6400, the Yongnuo is the wider, brighter choice. For a Fujifilm or Canon body, the Samyang is the only one of the two that fits. Because both are wide, they suit street, interiors and landscapes more than people; for portraits, the guide's portraits page recommends a longer lens.
For how aperture translates into background blur on APS-C, see the focal length converter.
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}.