Excluding a portion of a mesh from a Curve deformation modifier?

Is there a way to prevent a Curve modifier from deforming a portion of a mesh? Like, if most of the mesh were deformable but there were rigid bits.

A belt buckle would be one example, or an audio cable, but those aren’t great examples because the buckle and connectors are separate: the mesh in question is all one seamless whole.