Neither OB/Gyn nor IM "require" research, and it won't be "expected." If your long-term goal is academia, then establishing a track record of publishing would certainly be helpful down the road, but not necessary for your residency applications by any stretch.