Rotating a 90 degree joint without inflating it
You will never get a perfectly straight mesh with this approach. Even if you tweaked the vertex weights so that this case (90deg rotation) looked fine, you would see the limits of it once you start rotating it further.
You could use two different meshes instead, each bound to one bone, or even two different objects, each parented to one bone.