Typhoon was touted to replace Jaguar, F3 and GR4 and, to a lesser extent, Harrier.
The Typhoon can perform all of those aircraft missions though (to a lesser extent the Harrier, as you say).
The C-130 cannot do what the C-17 does, and vice versa. The three transport types aren't duplicating each other, they are providing their own niche capabilities (arguably, the A400M less so as it can do a bit of both).
Australia has it right, with a mix of C-27J, C-130J and C-17.