Yeah, if safety is your concern you pretty much CANNOT feed live gerbils OR hamsters.
Hamsters generally have ~6 babies at a time, were as mice will have an average of 10. They are actually very likely to NOT kill their babies, and are learner (lower in fat) han hamsters. Therefore mice>hamsters.
Still, as a bit of variety there is no problem feeding a humanely raised/killed hamster to your corn.