you are talking about another issue altogether, the concept of letting anyone and everyone into your country and giving them full benefits.
thats not a necessary aspect of the socialist/capitalist hybrid system that sweeden has. you could have that system without choosing to let everyone and anyone into your country.