South Bend Mayor Pete Buttigieg and Rep. Tulsi Gabbard, both military veterans, clashed at the 5th Democratic debate Wednesday night after the representative questioned the mayor's military judgement.

What they're saying: Buttigieg and Gabbard had words over a recent quote from Buttigieg on sending troops to Mexico.

Gabbard stated: "Pete, you'll agree that the service that we both have provided to our country as veterans by itself does not qualify us to serve as commander in chief. I think the most recent example of your inexperience in national security and foreign policy came from your recent careless statement about how you as president would be willing to send our troops to Mexico to fight the cartels..."

Buttigieg struck back, accusing Gabbard of taking what he said out of context: "that is outlandish even by the standards of today's politics."

"I was talking about U.S.-Mexico cooperation. We've been doing security cooperation with Mexico for years, with law enforcement cooperation and a military relationship that could continue to be developed with training relationships, for example. Do you seriously think anybody on this stage is proposing invading Mexico?"

Reality check: Buttigieg did say at a Latino forum in Los Angeles on Sunday that he'd be willing to send troops into Mexico, but as a means for "security cooperation," the Sacramento Bee reports.

"I’d only order American troops into conflict if American lives were on the line and if it was necessary to meet treaty obligations," he added.

Go deeper: