Difference between a strut bar and a sway bar

Strut bat attaches attaches to the top of the strut/shock towers and stiffens the body.

Sway bay is attached to the body and lt & rt suspension. It reduces body sway or lean.