Local distortions and dynamics in hydrated Y-doped BaZrO
3Y-doped BaZrO$_3$ is studied as a proton conductor for fuel cells. Density functional theory (DFT) and DFT-based molecular dynamics (DFT-MD) reveal that the bending of metal-oxygen-metal angles correlates with cell energy. Inwards bending, where the angle narrows toward the dopant, produces the lowest-energy structures when combined with nearby protons, forming the strongest hydrogen bonds. DFT-MD shows that outwards bending enables intra-octahedral proton jumps, while inwards bending favors rotations around oxygen. Computed diffusion coefficients and activation energies agree with prior experimental and theoretical data on local proton motion.