You asked
Would a used 100 400mm be a good buy for landscapes if I only shoot hills occasionally?
A used 100-400mm can be a sensible buy for hills, but it isn't a landscape lens first. The landscape page calls a telephoto zoom of 70-200mm or longer "underrated" for picking out layers of hills, a lone tree, or light on a distant ridge. A 100-400mm does that job. Landscape shooting also rarely needs a fast aperture, since you'll usually stop down to f/8 to f/11, so the slower f/5-6.3 and f/5.6-8 zooms here lose little.
The three lenses on this site are all 100-400mm zooms for full-frame cameras. The Sony FE 100-400mm f/5.6-8 OSS is the lightest, at about 650 g, which matters if you hike to your viewpoints. The two Sigma versions, the DG OS HSM Contemporary and the DG DN OS Contemporary, cover the same range. The lens pages here don't give prices, so the guide can't tell you what a used one costs or whether it's a bargain.
On buying used, the buying used guide applies. Long lenses hold their value and change hands often, so savings can be large. For occasional use, though, a lens you use only a few times a year may not justify much spending, so set a limit first.
For a landscape kit, add a wide zoom. The landscape page suggests 16-35mm on full frame, or 10-24mm on APS-C, for big skies and strong foregrounds. The 100-400mm is your hill lens, not your only lens.
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}.