>namely the freedom to not be harassed/deported simply because someone believes they are not assimilating "properly" or fast enough
Are these legal citizens of Sweden we're talking about? If not, then they have no right to stay in Sweden beyond whatever courtesy Swedes have decided.
>The secondary local conversation is whether it is discriminatory to treat a whole group the same based on ideas held by some percentage of a subgroup of that group
In isolation that would be unjust discrimination. When it comes to immigration policy, a nation has no obligation to discern incoming immigrants true views for compatibility. They can set whatever policy they want regarding who to let in. If the widespread views or cultural traits of some population renders immigration from that population more risk than reward, that is to no fault or demerit of the host nation. Immigration as policy is exclusively for the benefit of the existing citizens. Anything more is purely at the courtesy of the host nation, to be revoked at will.
Of course I am talking about people legally in Sweden (if they weren't there legally, this wouldn't be a conversation).
>> "In isolation that would be unjust discrimination."
You could have just stopped there. It is unjust discrimination no matter how you try to justify it (legally, practically, ends support the means, or otherwise).
The discussion isn't about what a person or country CAN do, the discussion is about what is fair and ethical behavior.