They are different words for the same thing. Libertarian socialists and anarchists often dont think state socialism is a thing, so they call it state capitalism. It really comes down to if you think the state apparatus can act on behalf of the working class or not. Anarchists dont think so, so the state owning the means of production is categorically not the workers owning the means of production, which is what socialism must be. More authoritarian socialists think that the state can own the means of production on behalf of the working class, so they call it socialism.
I personally think it is a bit silly to call it “state capitalism,” because it isnt capitalism. The power dynamic between the boss and the worker might be the same or similar, but it is still different enough that it deserves it’s own wording. It is fine to call it state socialism imo. There is no doubt that it sources from the socialist tree in some way. There can be shitty kinds of socialism.