It isn't all that difficult to regulate nepotism. It really, really isn't hard to do. But it does require the will to do it.
That's a bit like saying "It isn't all that difficult to achieve world peace. But it does require the will to do it."
Regulating nepotism is one thing. But eliminating it is quite something else. .....................
"The old Hindu caste systems, interestingly enough, ended up putting the darkest-skinned and poorest people on the bottom of the social ladder."
The basis for this was that there had been a movement of occupation and conquest which happened to involve lighter skinned people, who brouht their religion with them, into a region where the population had darker skins. As happened later in America.