Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thank you, that's a nice (counter)example. I'm wondering what happens if one restricts to finitely generated groups. Is it to be expected that the assertion holds in that case?
In general the conclusion does not hold, as pointed out by JCA. But some classes of groups have the property you are asking for. Such groups are usually called C*-superrigid.