MANILA — President Rodrigo Duterte said Friday that he would like to kill millions of drug addicts in the Philippines, defying international criticism of his country’s bloody war on narcotics and escalating his brutal rhetoric with a reference to the Holocaust.

“Hitler massacred three million Jews,” Mr. Duterte said after returning to the Philippines from a trip to Vietnam, understating the toll cited by historians, which is six million. “Now there is three million, there’s three million drug addicts. There are. I’d be happy to slaughter them.”

Killing that number of drug users would “finish the problem of my country and save the next generation from perdition,” he said.