LONDON — Prime Minister David Cameron of Britain clashed with the opposition Labour Party in Parliament on Monday over tax havens and his inherited wealth, and, in a spirited debate over economic fairness set off by the disclosures in the Panama Papers, defended the right of Britons to “make money lawfully” as long as they paid their taxes.

“Aspiration and wealth creation are not dirty words,” said Mr. Cameron, a Conservative, attacking the Labour Party for “wanting to tax” anyone who wanted to pass on their home or their wealth while still alive to their children, calling that “the real lesson of today.”

The Labour Party leader, Jeremy Corbyn, assailed Mr. Cameron for presenting “a master class in the art of distraction,” and accused him of “losing the trust” of ordinary Britons.

“Does he realize why people are so angry?” Mr. Corbyn asked, citing “six years of austerity” to the detriment of the poor, much of which could have been avoided, he said, “if this country wasn’t ripped off by the superrich.”