Staying with a competitive team was a key factor, Scott Boras said.

SCOTTSDALE, Ariz. — Speaking at the GM Meetings on Wednesday afternoon, superagent Scott Boras shed some light on why his client, J.D. Martinez, decided not to opt out of his contract with the Red Sox earlier this month.

“J.D. wanted assurance of competition at a high level and the fact that he played so well in Boston,” Boras said. “We looked at it and with those two things in mind, that was the focus. For that reason, he decided to opt in. The contract that we structured allowed him choices after each season. It was something that in this year, at this time, we felt like it was the best decision.”

Martinez, who signed a five-year, $110 million deal in February 2018, opted to return to the Red Sox for a $23.75 million salary in 2020 instead of foregoing the three years left on his contract. He will have the ability to opt out after the 2020 season if he wishes.

Martinez’s return was never a foregone conclusion due to the perceived interest of other clubs throughout baseball. Though Boras clearly felt there was no better deal out there for his client, he declined to get into the specifics of how other teams viewed Martinez.

“Because he’s under contract with a team, I can’t survey the market,” he said.

Martinez, who posted a .985 OPS in his first two seasons with the Sox, will return to the middle of Boston’s lineup as a designated hitter next season.

“This is an elite bat,” Boras said. “This is very different than what DHs are, usually, to most teams. He’s a franchise bat so we always look at him that way.”