How to solve joint bending with a mesh structure
You just need more geometry. Just insert more loopcuts and the deformation will be smoother.
e.g. left a cube without loopcuts and an armature.
right a cube with loopcuts and an armature.
result: