In my experience, midirection of that type is not effective. I don't think the AI gives a crap what you're building. The only way to screw them is to build the one they're building. Sometimes they get a 200 shield phalanx. Sometimes they switch to a less useful wonder. Attacking the city that they're building one in will sometimes discourage them also. A 150 shield phalanx.