Tension or compression brace would be of little difference for a dinky cabinet door. The extra fixings into a triangulated brace will be fine either way.
Compression is only better if it's done well, with the ends of the brace being in full contact and fixed to the rails. Any gap or slippage of the joint negates it being any stronger as it ends up using the nails fixing the boards to the brace to resist sagging, just like a tension brace.
Tension or compression brace would be of little difference for a dinky cabinet door. The extra fixings into a triangulated brace will be fine either way.
Compression is only better if it's done well, with the ends of the brace being in full contact and fixed to the rails. Any gap or slippage of the joint negates it being any stronger as it ends up using the nails fixing the boards to the brace to resist sagging, just like a tension brace.
https://tp69.blog/2018/12/31/the-best-way-to-brace-a-wooden-door-or-gate/