This is a no true Scotsman argument. If you define socialism as purely being policies that don't work, of course socialism doesn't work. If you accept that you can stick to your principles whilst being flexible about the implementation strategy, socialism seems to work out pretty well in some places.