Repetitive transcranial magnetic stimulation (rTMS) and esketamine are FDA-approved treatments for treatment-resistant depression (TRD), yet head-to-head comparative effectiveness data remain limited. Our study compared the effectiveness and safety profiles of rTMS versus esketamine in adults with TRD. This cohort study used target trial emulation with 1:1 propensity score matching on 50...