This is incorrect and is the same mistake that the BBC have been making.
Not only are Germany now most likely to qualify (as you’d imagine that they will beat Costa Rica by more than one goal and that Japan will fail to beat Spain) but if Germany beat CR by eight goals, then they would qualify regardless of the result in the other game.
Now, we can argue about how likely it is that Germany win by eight clear goals (Spain beat them by seven remember), but it is just plain wrong to say that they can’t qualify if Japan beat Spain.