Corporations act strategically. They typically don't immediately thwart new laws because the coalition that passed them is still intact and would try to do something about it. So they wait a minute, maybe take the time to buy some more legislators, before testing the fences again.
If people have forgotten about them by then you lose, and if people haven't forgotten about them by then, California passes the 2024 law and you lose the other way. Because they pass the new law in addition to rather than instead of the old one, even though the old one has stopped working, so you have a ratchet of ever-increasing compliance costs that also apply to all the companies that were never doing anything wrong to begin with but still have to hire lawyers to evaluate their activities against an entire bookshelf of rules to see if any of them require something they're not doing.