If the fan is near the source of heat, then it is better to pull the air out, as pushing would only disperse the hot air and raise the ambient temperature. If the fan is not near the source of heat, the it is better to push the air, because:
- pulling would not get rid of much heat, only some ambient
- cool air would come in and lower the ambient temperature and help to force the hotter air out