Choose a parametric baseline hazard and fit
Under independent right censoring, the full survival likelihood is
Estimate by maximum likelihood estimation and test with a likelihood-ratio test, Wald test, or score test. Equality of the two event-time distributions is exactly within this model.