You asked
Which 35mm or 50mm lens would suit my sony a6400 for group portraits in small rooms?
For group portraits in small rooms, the 35mm end of your options is the better fit. On the Sony a6400 (APS-C, so 1.5 times crop), a 35mm lens frames like about 52mm on full frame, a comfortable view for a few people. A 50mm lens frames like about 75mm, which is tight for groups in a small room. The portraits guide recommends 35mm for groups for this reason.
The a6400 has no in-body stabilisation, and small rooms are often dim, so a fast lens matters more than steadiness here. The Sony a6400 page lists these lenses that cover the 35mm range and are fast enough for indoor use:
The Sigma 17-40mm f/1.8 DC Art, which frames like 26-60mm, is the widest and fastest option. It fits tight rooms well, and at f/1.8 it keeps indoor shots bright. Its zoom range also gives you the 35mm view when you need it.
The Sigma 28-45mm f/1.8 DG DN Art, which frames like 42-68mm, is a strong choice if you want a fast lens near the 50mm view for portraits. It is less wide, so people may need to stand closer together in small rooms.
The Tamron 20-40mm f/2.8 Di III VXD, which frames like 30-60mm, is a good compromise. It is a little slower than the Sigma lenses but covers wide and standard framing in one lens.
The guide's focal length notes explain how these equivalents work if you want to compare other lenses. Prices are not shown for lenses here, so check the listed shops before buying.
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}.