Ok tested militia / LI at 999 resource costs with default gold costs and the AI built crossbowmen / archers in 2 of such provinces over 20 or so turns that had Militia available instead.
So its safe to assume the AI won't block production in all of its independent provinces due to the high resource unit costs. Maybe 1 or 2, maybe none ever, but never all of them

.