I just filed FB7616621: “NSTextView leaves blue turds when deselecting text”. I can reproduce it in Apple Notes as well as MarsEdit and other apps.

Screenshot of Apple's Notes app with a bunch of hairline blue lines drawn where they shouldn't be.