THE ORIGIN OF COMETS AMONG THE ACCRETING OUTER PLANETS