Depends, if you want FM, go DO. However, there several specialties that will be an uphill to impossible journey as a DO.
Ortho, neurosurg, IR, to name a few.
@Goro has a nice list of DO friendly and not friendly specialties. For me, the only people who were ever nasty to me were other DOs because I did acgme residency and fellowship.The MDs were fine. Whatever you do, you will be judged on your merits and abilities, not your degree,gender, IMG.
I have worked and taught in both worlds.
I have to agree with other posters that outside of primary care specialties, you will be at a disadvantage as a DO. Of course, just being an MD wont get you a neurosurg residency unless you have all of the other boxes checked, High Step 1 score, research, LORs, ECs. Just my experience. Hope this helps a little. Good luck and best wishes