You asked

Which leica sl3 or lumix s5 ii would suit my portraits and how do they differ for a 50mm lens?

For portraits, the Panasonic Lumix S5 II is the easier recommendation. It's a full-frame L-Mount body with in-body stabilisation, and the Lumix S5 II page gives its 24.2-megapixel sensor, which is plenty for portraits. Pair it with the Panasonic Lumix S 50mm f/1.8. The portraits guide calls the 50mm f/1.8 the cheapest great lens in photography, and on full frame it gives a natural, slightly tight view. It's the one lens to buy if you want people pictures. If you shoot in dimmer light, the Panasonic Lumix S Pro 50mm f/1.4 gives more separation from the background, at the cost of size and money.

The Leica SL3, on its page, has 60 megapixels, so it suits portraits you'll crop tightly or print very large. The extra resolution matters less for most portrait work than the lens and light do. Its 50mm options include the Leica Summilux-SL 50mm f/1.4 ASPH, a premium fast lens that suits a dedicated portrait kit.

For a 50mm, the difference between the two bodies is mostly resolution and the lenses you'll pick. Both take the same L-Mount lenses, so the 50mm choice carries across. Add the Panasonic Lumix S 85mm f/1.8 later for tighter headshots, since the guide notes longer lenses flatter faces.

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