Apply subdivision surface modifier to one axis only (round edges)
I'd use the bevel modifier instead. You can target specific mesh parts using bevel weights on edges or vertex groups.
Subdivision modifier doesn't support any form of targeting per say, you can add support loops or use creased to control the deformation on the mesh, but you can't prevent the modifier to operate on mesh parts.