I will never step a foot in DC, NY city ,Chicago, NJ or California. I would never take public transit. Nothing there for me. Too many other nice safe places to visit.
You aren’t safe on the Metro and if you drive they have camera’s everywhere to steal your money, and call it a traffic violation.
Your first thought is the correct one. Stay out of DC. By no means be caught in Anacostia or far Northeast.