AI works for me (TM) most of the time, but you need to give it the correct promt.
The "problem" is, that although it can be used to ease up writing repetitive code (at least repetitive for/to the AI), that the answers are based on (common available) input and used to predict a most commonly accepted answer.
There is nothing unique, refreshing or smart about the generated code, or it must be you prompted it to combine different variations of the theme that no-one has though of before (but then you are the one that combined them).
Thus basically a one-size-fits-all with a little flavour of randomness attached to it so that it appears to be .......
That is working great if you expected that and are able to live with such an answer (not saying it is wrong perse, but just based on/for the masses).