You asked

Which 50mm or 85mm lens is best for portraits in a small room on the canon eos r5 c?

The guide would pick the 50mm for a small room. Its portrait advice is that longer lenses flatter faces because you stand further away, and an 85mm needs that distance. In a small room you can't back off far, so an 85mm will frame a head and shoulders tightly against the walls. A 50mm gives a natural view on full frame and still flatters at closer range. The portraits guide explains the 85mm's working distance, and the lenses guide suggests a fast 50mm as a people lens.

Three catalogue picks for the Canon EOS R5 C:

Stabilisation steadies the camera, not a moving sitter. In a dim room, the aperture and shutter speed matter more, so the 50mm f/1.2 or f/1.8 will do more for sharp portraits than the stabilised 85mm. Prices change, so check the current figures and shop links on each lens page 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}.