You asked
How does the sigma 50mm f 1 2 compare with a sony a6400 for portraits?
Here is what the site says about that.
From 7Artisans 50mm f/1.2: 7Artisans 50mm f/1.2: A prime lens by 7Artisans for APS-C cameras, 50mm f/1.2. Specs - Maker: 7Artisans - Focal length: 50mm (prime) - Maximum aperture: f/1.2 - Made for: APS-C sensors - Mounts: Sony E, Fujifilm X, Nikon Z, Micro Four Thirds - Stabilised: no - Autofocus: no, manual focus What it frames like - On APS-C (Sony E, Fujifilm X, Nikon Z): like 75mm on full frame; f/1.2 gives about the depth ...
From Sony a6400: Sony a6400: A mirrorless camera by Sony with a 24.2-megapixel APS-C sensor, announced in 2019. Small and very quick to focus. There's no stabilisation in the body, so pick stabilised lenses for low light. Specs - Maker: Sony - Mount: Sony E - Sensor: APS-C, 23.5 x 15.6mm, crop factor 1.5 - Resolution: 24.2 megapixels - Stabilisation: none in the body; use stabilised lenses for slow shutter speeds - Announced: 2019 - ...
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}.