Aside from goals I think Ribery smashed Ronaldo in every other statistic. Dribbles, chances created, passes, crosses, tackles, pretty much everything. It's why bringing up goals while ignoring other stats is such a bad way of looking at it. Clearly Ronaldo was playing as a striker and Ribery as a midfielder so it makes no sense comparing goals alone.
No really, back in 2013 Ronaldo was an all action LWF in 433 (or 4231) formation, Ribery was a LWF in 433 (or 4231) formation too. Basically they were playing at the exact same role/position for their team.
That's Bayern starting line up in 2013:
Neur
Lahm Boateng Dante Alaba
Martinez Schweinsteiger
Robben Muller Ribery
Mandzukic
And that's Real Madrid starting line up in 2013:
Casillas
Essien Ramos Varane Coentraio
Khedira Alonso
Di Maria Oil Ronaldo
Benzema
You may argue they didn't share exact same style/approach despite playing in same position, and you may suggest Ribery was better dribbler and creator too, in truth that applies to BL only, while its clear the quality of BL are well below LL at that time. But anyway, lets start off with comparison of their overall impact and performances back in season 2013.
In terms of overall impact, Ribery was only directly involved in 27 goals throughout the season. Ronaldo was directly involved in 67 goals, the gap was quite huge, something which can't be ignored. In fact it took the very best of Ribery for 3 or 4 seasons added up together to match the stats of Ronaldo in 1 season, which is quite ridiculous. Ronaldo is simply just many miles ahead.
In terms of their average rating, Ronaldo has 8.15 in LL and 7.93 in CL, Ribery has 8.42 in BL and 7.22 in CL, I would rate Ronaldo higher as he clearly performs far better in same stage (CL), whereas in terms of their league games performance, as mentioned LL (top 1 league) and BL (top 4 league) isn't near the same quality to begin with.
In terms of motm, Ronaldo has 15, Ribery has 11. Ronaldo wins again.
So Ronaldo is winning in stats and performance, how about Ribery main strength, such as dribbling and creating chances? Lets compare their dibbling stats and key pass stats in CL then:
Dribbling: Ribery 2.3 vs Ronaldo 2.1
Key pass: Ribery 1.6 vs Ronaldo 1.9
Ok, they are actually performing in about the same level in terms of dibbling and creating chances back in CL 2013. Hope thats not a big shock for you coming into realization.
So in conclusion, position-wise they are playing in the exact same position, stat-wise Ronaldo is far far far better, performance wise Ronaldo was still clearly better (in CL). In terms of dribbling and creating chances, they are about same level in CL too. The only reason Ribery was one of main contender for Ballon D'or, is 100% because of Bayern winning the treble. But like when we won the treble in 1999, we have no one actually winning Ballon D'or too, but only Beckham finished as runners up. I mean, someone from treble winning team should be there among contenders, it could be Ribery, or Robben, or Muller, or Schweinstiger, and it just happened to be Ribery. For us in 1999, it could be Beckham, Scholes, Keane, Giggs or Yorke, but it just happened to be Beckham. Truth is, Its more of a collective effort really. And I'd say the same applies to Bayern treble winning team too, its more of a collective effort rather than individual brilliance.