Local body repair shop tagline: “We meet by accident.”
Always thought that was cute, though I don’t imagine it’s original.
I’m with option C. - it was AN accident. I suspect “on accident” is meant to be the opposite of “on purpose,” but the opposite of purpose isn’t accident.