I wish I was joking but a union sounds like blue-collar work while a guild sounds like something cool from D&D and medieval fantasy.
screen actors guild
Writer's guild of America
Both of which are unions
In addition, both guarantee some minimum pay scale while working (which is mostly not a concern for software developers or engineers more broadly in the US) but do not in any way guarantee work.