There's some information that makes comparing them side-by-side impossible.
For instance, Goff played in only seven games his first year, so Dak has nine more starts, which skews the passing yards, passing TDs and interception numbers. However, although the TD and passing yards would be higher for him, the overall numbers would likely be worse because he got off to a slow start.
Same with Wentz, he has eight less starts than Dak. An argument could be made, though, about his inability to stay healthy.
Then, there's progression to consider. Goff completed 64.9 percent of his passes this year for 4,688 yards, 32 TDs and 12 interceptions, which is a progression from his second season, which was a step up from his first.
Dak completed 67.7 for 3,885, 22 and 6 which was a progression from the previous year and about even with his first. So the good news for us is that Dak's numbers got back to being right in line with his first season. However, it's hard to say he put up better numbers than Goff considering that Goff clearly was passing more based on almost 1,000 more yards passing. That usually affects your completion percentage and interception and TD numbers.
To blanket put their stats down and just go by that fails to consider multiple factors. However, it is nice to see that Dak returned to his 2016 level statwise when it didn't look like that was possible early in the season.