The legal bump-and-grind of the "Porn-ikova" case ended yesterday when Penthouse decided to settle just as a federal judge was about to issue a decision.

Former model Judith Soltesz-Benetton, whose bare breasts were exposed in the June issue  under headlines saying the pictures were of tennis tart Anna Kournikova — had asked for $10 million. 

Settlement talks reached a climax yesterday morning, before both sides agreed on an unspecified payment — and Penthouse agreed to destroy the 18,000 copies of the magazine still in the company's possession. 

But they did not have to issue a recall — a financially costly move that also would have had First Amendment implications. 

Neither side would discuss the amount of cash Penthouse will pay. 

But Penthouse publisher Bob Guccione isn't done paying for the sexy pix, said Kournikova lawyer Randy Mastro. Kournikova has filed her own $10 million lawsuit against Penthouse in California. 

"Based on what just happened in New York, I think it's fair to say that it's game, set and match point for Kournikova over Penthouse." 

Manhattan federal Judge Denny Chin was set to issue a ruling in the case yesterday after hearing two days of testimony in the bizarre case. The pictorial was snapped by a St. Louis man several years ago while Soltesz-Benetton sunbathed topless in Miami. 

The photographer and Penthouse claimed they identified the woman as Kournikova by comparing the breasts and nipples to other photographs.Soltesz-Benetton, the daughter-in-law of clothing king Luciano Benetton, agreed to the settlement after receiving a personal letter of apology from Guccione.

For more news, entertainment and sports coverage, click here for NYPost.com.