You asked

How does the canon rf 400mm f 2 8l is usm compare with the 100 500mm zoom for birds in flight?

For birds in flight, the guide's shutter-speed advice is the deciding factor. Freezing wings at about 1/2000s pushes ISO up, so light matters most, and the Canon RF 400mm f/2.8L IS USM has the edge. Its f/2.8 aperture is much brighter than the Canon RF 100-500mm f/4.5-7.1L IS USM, which drops to f/7.1 at its long end, a gap of several stops. The 400mm is also a prime, so it has no zoom to fuss with when a bird is moving fast.

The zoom gives you flexibility. It reaches 500mm on full frame, compared with 400mm, and it covers everything from 100mm up, so it suits mixed days of birds, sport and landscapes. The guide's reach section says birds want 600mm full-frame equivalent or more, and neither lens reaches that on full frame. On an APS-C body, though, the 400mm gives the view of about 640mm, which meets that target.

Two sensible pairings follow from this:

This answer does not quote prices for either lens. Check the "Price in France" section on each lens page, since prices change. If you buy used, the guide's buying used page explains why long lenses are often worth looking at secondhand.

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