If you hate ob/gyn and or peds, then the choice is clear: IM.
EM has better pay/hours worked, but you have to work more nights/weekends/holidays compared to an established IM doctor (once out of residency).
If you like continuity of care, then pick IM over ER.