When public unions became a thing in the 1960s and 1970s, they systematically excluded Black people, for example.
Even in the US South, the vast majority of millennials and gen Z are not racist. They aren't in political power yet, but in the next 20 years or so, they will be and the zeitgeist of the area will finish its shift (even the people currently in power are abolitionists compared to the previous generations). Travel the world and you'll see that (perhaps outside some European countries) the US of today is just about the least racist country in existence.
Guilds/Unions formed today won't have the same issues as ones from 50-60 years ago because the general view of people today isn't what it was back then.
No matter what the "zeitgeist" is 20 years from now, guilds will still have the effect of artificially limiting the supply of labor to the fields they control, which has been a disaster for fields ranging from medicine to cosmetics.
But in an industrial union, as an example get hired by an automaker with a UAW contract (and not in a so called right to work state), you are a UAW member.
Perhaps that is by design - companies are wary of investing time and money training junior employees because they can just leave before the investment pays for itself?
Not sure what the answer is here; just playing devil’s advocate.