Rios was better. Bigger talent, bigger titles indeed.
However, Gonzalez will be a LOT more satisfied with his career. Worked hard, made the most of his limited game (decent movement, not great, decent serve, not great, very average backhand, awesome forehand). and won 3 olympic medals.
I think Gonzalez will look back on his career a happier man than Rios.