Basic bayesian inference formulation

Is there one of the two that are preferred over the other or would you say both are correct, but the latter gives the most flexibility on the posterior?