Examining galactic and extragalactic gamma-ray burst models using the peak flux distribution