JO works given what was available (not much) and what the Celtics need from their center position (defense). The price was a little inflated, but so is the market.
Really Ainge has basically told us with his strategy "two more years - we're going to go all out with this group". O'Neal is imperfect, but younger options might not have been amenable to this two year plan.