Wow I can't use bard yet as I'm in the EU. But ChatGPT has never done something like this to me.
well that's one way to make code faster, just require the underlying hardware to compute things for you
But every time it gave me a very sensible solution.. Usually not something that worked right out of the box but never something totally stupid.
It gets the rough outline of a solution OK but very easily gets lost if the problem requires 2 or 3 levels of what I guess I'd call nested analysis. Or rather, it's fine for creating a surface solution, but it gets lost in the weeds quite easily for things like type system or borrow checker problems.
Because it doesn't reason -- it (re)produces patterns.