We're taught by tūtū Pukui in her book that "even through adversities and dissipation, some people remain handsome."vHowever, some kanaka view the tree not as being beautiful "despite" being swayed to and fro. Rather that it is beautiful because of being swayed to and fro.
A tree that is flexible adapts to the force against it and that remains when the wind has gone.
Just like the wind, adversity can bring out the beauty in a person--be it resilience, adaptability, strength, or growth to be better. It's not enjoyable to see someone struggle, but to watch them faced with challenges and adapt to or survive them--that is the beauty in a tree swayed by the wind.