The expressions are not quite interchangeable. The expression "to my mind" is usually used after some period of reflection and so refers to something complicated that has been thought through. "In my mind" would probably be used to talk about some opinion that a person had long held.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.