The whole moral argument behind laws like AB5 is that it's Uber that's ripping off the drivers, who are helpless and powerless, and cannot do anything to stop getting short end of the stick. The legislature then decides that they should adjust the terms of the contract to be more fair in the legislature's opinion. However, this whole argument hinges on the question whether the drivers are in fact coerced or defrauded: if the drivers are free to quit working for Uber at any point, and yet they don't, how can you argue that they are being coerced by Uber to anything? Usually it pivots to the argument that it's the hard facts of social reality that "coerce" them to work, but then regulating Uber in particular seems unwarranted, because why is Uber singled out, instead of other options that are even worse, as shown by the fact that the drivers choose Uber instead of those even worse options?
I think that the point of view of "social reality coercion" is also ultimately misguided as a tool to explain the political decisionmaking. Consider this: imagine California institutes UBI (and ignore for a while the question of how to pay for it). Do you think that California would also repeal all kinds of labor regulation, including AB5? That since the drivers, or waiters, or everyone else now has an option of just leaning on their UBI, and no longer be coerced to work by social reality, those regulations are now superfluous, and the people who don't like the deal presented by Uber or Amazon can just leave instead of taking it? I seriously doubt that it would happen. I think that the desire of government and the society to micromanage other people's lives is too great to resist, and the "coercion" is just an excuse to get moral justification for meddling in the deals other people make.