Mobile data usually works fine in German regional trains. But if you want trips longer than 2 hours, you probably want the higher speed trains anyway (which now might have less annoying poor people in them)
What’s more annoying is that the price - in regions without good public transportation it’s actually too expensive, but it’s a nice gift to big city dwellers.