Lexicographically compare two buffers.