What is worse? BK or Foreclosure

What’s worse? BK or foreclosure? Why? What are the pros and cons. I need help. Thank you.

They are both bad to have on your record.
The benefit to BK over foreclosure is that you can usually keep your home. Foreclosure will lose you your home.