It’s always best to err on the side of caution when speaking to the other party involved in an accident. Never assume that a conversation is private, and never apologize for something you didn’t do wrong.
Unfortunately, even something as simple as asking how the other person is doing could be used against you in court. The best thing to do is exchange insurance information and leave it at that.