There always does seem to be that awkward moment where you feel you should say something. These days I also stick to 'thank you' or 'good match', and maybe compliment them on some aspect of their game ('good serving!', 'your slices are brutal'). But often I also know the person, and we end up chatting anyway.
What would you do if you knew you could not fail?