AI definitely loves to over-engineer things but I've had lots of success with the latest models just telling them not to. Also I do simplification passes afterwards telling them to find anything that can be simplified or YAGNI.
I guess the tend to over-engineer is probably because the benchmarks don't care about simplicity and maintainability? Who knows.