Distinct is how many games you have scores in.
Example
If you have 3 scores in Tetris, 1 score in SMB and 5 in Sonic.
Then you have 9 total scores and 3 distinct scores.
I know, not a very descriptive title.
Mastered is how many games you have beat in score mode.