Have you ever locked your checked luggage? Did you find the lock broken when you picked it up off the baggage carousel?
If your luggage needs to be inspected, TSA can and will rip off the lock or break it. For that reason, pick a bag with a TSA approved lock. That means TSA can open it with a master key. The label will tell you if it’s TSA approved