Compatible priors for Bayesian model comparison with an application to the Hardy-Weinberg equilibrium model