Both your reactions are equivalent. Here’s why. We start from $(1)$.
$$\ce{4 OH- -> O2 + 2 H2O + 4 e-}\tag{1}$$
(I have omitted the phase descriptors for clarity.) In any chemical reaction, we can add or subtract spectators as we see fit; this is akin to mathematical equations where we can add or substract expressions as we see fit as long as we do the same to both sides. For example, I want to add four protons to $(1)$ to give $(2)$.
$$\ce{4 OH- + 4 H+ -> O2 + 2 H2O + 4 e- + 4 H+}\tag{2}$$
If this were now a mathematical equation, I could combine (or divide) parts as I see fit. In a chemical reaction, we need to be a bit more careful. But as long as our focus is not on proton transfers, we can combine anything basic enough with acidic protons. Here, you can combine the four hydroxides and four protons on the reactant side of $(2)$ to give $(3)$.
$$\ce{4 H2O -> O2 + 2 H2O + 4 e- + 4 H+}\tag{3}$$
Now, we notice that we again have spectators. Two water molecules turn up both on the reactant and on the product side (an additional two are unique to the reactant side). We can remove them like we did the protons before, giving us $(4)$. I will also perform some rearranging.
$$\ce{2 H2O -> 4 H+ + O2 + 4 e-}\tag{4}$$
It so turns out that $(4)$ is your second suggested reaction. It is the same equation as $(1)$ as I have just shown; the difference is merely in the type of water molecules present.
Now which one should you use? Notice that one reaction consumes hydroxide while the other produces protons (formally! The consumption of hydroxide is equivalent to the production of protons). Thus, if your reaction medium is basic, you should use $(1)$ for your redox reaction. If, however, your reaction mixture is acidic, $(4)$ is more appropriate. In short, choose the one with the same charged particle as is used in the other half-reaction to make your life simpler.