The thermodynamics of structural phase transformations in thin films depends on the mechanical stress that can be released by plastic deformation. For PdHc films less than 22 nm thick, a new situation emerges: while the interfaces between matrix and hydride precipitates remain coherent throughout the complete phase transition, misfit dislocations form between the hydride phase and the substrate.