Everything else being equal, the constitution is much, much more explicit about the right to bear arms than the right to an abortion, so if SCOTUS really wants to excuse one but not the other, I imagine that's the avenue they take.
Of course, there are many other examples of how one could apply this dumb theory, like aigomorla points out. If for whatever reason SCOTUS does knock down the California law but not the Texas one, if Dems keep using the same theory to craft other laws until the absurdity is too difficult to ignore, I think they'll eventually get their way.
If you're pro-life, you still shouldn't support what Texas is doing here. It's pure "ends-justify-the-means." Even if you believe Roe also falls under that category, two wrongs don't make a right. That's the only thing that gives me pause with what California is doing, which falls under the same umbrella. Maybe they should have waited a bit longer for this Texas stupidity to wind its way through the courts before lowering themselves to the same level.