Bard is terrible at coding. It makes a lot of mistakes but is too insistent it got it right. My feeling is Bard confabulates more often than the recent version of ChatGPT.
The good thing is one can verify the output of Bard easily with the Google button and when asking for links it will give you reference (real or not). Other plus is the ability to access internet, so you can give Bard directly your own document for processing.
ChatGPT also seems to understand the intention of the user better while the filtering (clam down) of bard is very strict.