Two very different races. Here's every stat, side by side, to help you pick.
Indicative — based on GPX data. Both courses normalised to start at 0m.
✓ marks the better number on that stat.
Both are flat German autumn loops, but they sit on different tiers. Berlin is a World Marathon Major in late September with about 49,800 finishers, a course record of 2:01:09 and just 58m of climbing. Frankfurt runs in October, finishes about 12,300 runners and has 95m of gain, so its difficulty score is 2.2 against Berlin's 1.6. Its course runs from the Messe through Sachsenhausen, Niederrad and Höchst and ends with a finish inside the Festhalle on a red carpet.
Frankfurt is a credible place to chase a personal best, with a men's record of 2:03:42 against Berlin's 2:01:09. Berlin is the bigger occasion and the flatter course by the numbers, but entry is by ballot. If you want a fast German marathon without that ballot, Frankfurt is the better bet.