If government comes to you and says “this should be taken down due to X reason” then it is government censoring. China does the same thing. I linked elsewhere in this thread examples of the government asking Facebook or Twitter to censor directly.
There’s an implied threat. The Supreme Court has already ruled on this previously. I expect in the next couple years as court cases about the censorship work through the courts, the same thing will happen again.
If the government was silent and the censorship occurred then MAYBE it’s legal. That of course depends on if it’s a common carrier or public space. Both arguably are true for social media, but again it takes time for the courts to figure it out. I would concede that point, but again government asked for the censorship here.