"So, even more interest from me in your test results now!"
This proves that the AI does not cheat on wonder building based on how many turns are left in your build, as OP suggests. In both OP's example and mine, the Oracle will be completed in 2 turns in our capital, but in OP's example Djenne builds walls and in my example Djenne builds the Oracle.
While it's still possible that other ways of 'cheating' exist (perhaps OP's tile micro invested 95% of the Oracle hammers while mine invested only 94.5%, and that's the cutoff), it's pretty unlikely and I see no reason to believe it.
Change your capital to work only the tiles 1s,1e,and 1se, leaving one citizen not working tiles. The Oracle still completes in two turns but Djenne now attempts to build it.
This proves that the AI does not cheat on wonder building based on how many turns are left in your build, as OP suggests. In both OP's example and mine, the Oracle will be completed in 2 turns in our capital, but in OP's example Djenne builds walls and in my example Djenne builds the Oracle.
While it's still possible that other ways of 'cheating' exist (perhaps OP's tile micro invested 95% of the Oracle hammers while mine invested only 94.5%, and that's the cutoff), it's pretty unlikely and I see no reason to believe it.