You asked
Sony fe 50mm f 2 5 g vs sigma 50mm f 2 dg contemporary?
The guide's pick for most people is the Sigma 50mm f/2 DG Contemporary, especially if you shoot people or work in dim light. Its f/2 opening lets in roughly two-thirds of a stop more light than the Sony's f/2.5. That means faster shutter speeds indoors and a little more background blur. Neither lens is stabilised, so the aperture matters more here, as the lens aperture guide explains.
The Sony FE 50mm f/2.5 G gives up that light for little gain. It fits only Sony E cameras, while the Sigma also fits L-Mount, so the Sigma keeps your options open if you later switch systems. The Sony still makes sense if you want a lens made for Sony E alone and don't need the extra light. Both are full-frame lenses that frame as a 50mm on full frame. On APS-C, the Sigma gives depth of field close to f/3 and the Sony close to f/3.8.
The guide has no prices for either lens, so it can't say which costs less. Check the lens pages for current prices before you decide.
If you own a Sony E body such as the Sony a7 III or Sony a7 IV, either lens works on it. For portraits, the portraits page calls a 50mm the most useful first lens for people, and the Sigma's f/2 is the closer of the two to its f/1.8 recommendation.
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}.