Cosmological parameter inference from galaxy clustering: the effect of the posterior distribution of the power spectrum