You asked
Which 70 200mm lens is best for indoor basketball with a used sony a9 ii?
For indoor basketball, the aperture matters more than anything else. Gyms are dim, and the lens has to let in enough light to freeze fast players at a shutter speed that stops motion. That is why this guide points to the f/2.8 versions of the 70-200mm rather than the f/4 zooms. The a9 II's full-frame sensor also handles high ISO well, which helps in a dim gym. Image stabilisation steadies the camera, not the players, so it's a secondary concern here.
On the a9 II, the strongest pick is the Sony FE 70-200mm f/2.8 GM OSS II. It is the newest of the f/2.8 Sony zooms on the camera's list, and its f/2.8 aperture suits a gym. The Sony FE 70-200mm f/2.8 GM OSS gives you the same aperture for less money if you're buying used, and it's the one to consider if you want to save. The Sigma 70-200mm f/2.8 DG DN OS Sports is a sports-oriented f/2.8 option that also fits the a9 II.
Skip the Sony FE 70-200mm f/4 Macro G OSS II for this job. Its f/4 aperture gives you a stop less light, which means slower shutter speeds or higher ISO in a dim gym.
The catalogue pages don't include prices for these lenses, so the guide can't compare costs here. Check each lens page for its price section before you buy used, and look at the a9 II page for the body's details. For the sport-specific reasoning on reach, see Wildlife and sport.
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}.