If you have to get one or the other....get a good fluid trainer (Kurt Kinetic, CycleOps). Gives you more options to train with. If you need to work on balance, cadence, bike handling, etc...that's what pavement/roads are for. If you need to focus on your fitness, a trainer is the better choice, as noted by others as well.
__________________
2016 Trek 520 (54cm) touring bike for sale - never ridden. Message me for photos/details.