Have a look at the players in NBA, they're from all over the world, namely countries with naturally tall people.
Take for example players from Serbia, Croatia these 2 countries alone have produced almost 60 players, Boban Marjanović is 2.24M tall, the damn Basketball Ring itself is 3M, I mean you must be incredibly crap if you can't slam dunk a point, rebound or throw a ball inside the free-throw lane.
I know what you're gonna say, "Yeah but there are players that are 1.8M and some shorter, so??" Well these players are generally playing one position and it's point-guard, pretty much what John Stockton was good for.
I've played School, Uni and Casual Basketball for few years and tall players have a competitive advantage.
Same thing with jockeys, except the other way.