They're usually synonymous and interchangeable. However, mimic can be used as a noun to describe a person who is good at imitating things. When I hear mimic in speech I consider it to have a more negative connotation than imitate, but that might just be me.