The result of what you posted will always be New Static Mesh because you are telling it to change if its not equal to it.
Suggest you consider having a static mesh component, a variable with the default static mesh and the instance editable static mesh: check if NewStaticMesh is valid (not empty), if it’s not valid, spawn Default SM, else spawn NewStaticMesh.