You asked

Sigma 45mm f 2 8 dg contemporary vs sony fe 40mm f 2 5 g?

Here is what the site says about that.

From Sigma 45mm f/2.8 DG Contemporary: Sigma 45mm f/2.8 DG Contemporary: A prime lens by Sigma for Full frame cameras, 45mm f/2.8. A small metal standard prime with a soft, classic look wide open; sold as the 45mm f/2.8 DG DN before 2025. Specs - Maker: Sigma - Focal length: 45mm (prime) - Maximum aperture: f/2.8 - Made for: Full frame sensors - Mounts: Sony E, L-Mount - Stabilised: no - Autofocus: yes What it frames like - On full frame ...

From Sony FE 40mm f/2.5 G: Sony FE 40mm f/2.5 G: A prime lens by Sony for Full frame cameras, 40mm f/2.5. Tiny and sharp: a lovely everyday lens on the compact bodies. Specs - Maker: Sony - Focal length: 40mm (prime) - Maximum aperture: f/2.5 - Made for: Full frame sensors - Mounts: Sony E - Stabilised: no - Autofocus: yes What it frames like - On full frame (Sony E): as marked, 40mm. - On APS-C (Sony E): like ...

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