If it were an accurate mechanistic inevitability, then it wouldn't be racist. Constructing an inaccurate one to justify the current distribution of wealth and power is a racist act.
Now, luck and other alternative causes.
Any process in history on the scale of western European dominance is necessarily a sample of one, so describing a sequence of events is the only way to work with it. Whether that sequence of events seems lucky or not is irrelevant. Indeed, a "lucky" confluence of many factors is often required for a particular large scale shift to occur.
The only time you can talk about luck or chance usefully in history is when you have many similar situations, and a few of them come out quite differently for some reason. Empirically, we say that those are "less likely," but that is a way of summarizing things.
And you are leaving aside culture. If we accept that the general set of behaviors and approaches of a group differs from other groups, then that's a vital component of any historical description or explanation. Why, when the Maori obtained firearms, was one of their first acts to go massacre a nearby island's population, while when the Hawaiians got them, the result was a war of unification? Any explanation of that is going to involve cultural differences.
How western Europe went from being a backwater with, as Jared Diamond would put it, less "cargo" than much of the rest of the world up to the 15th century to having more is very complicated, and much of it involves culture.