
Without going in to details..... Its not only sea level static thrust that is important, thrust lapse with speed and altitude is also important and different between engines.
The EJ 200 is good at high speed and high altitude, not nessecary giving less thrust than the F414. (Its not only the engine, the installation is also important for the actual thrust.)
I think that in the Eurofighter the EJ200 is the best choice, the engine is well integrated in to that airframe.
But for Gripen, one of the main reason for picking the 414 instead of the EJ200 in my opinion were the fact that the interfaces are more common to the RM12 than the EJ 200, there were a few things that needed a major redsign if the EJ200 were to be fitted instead of the 414.
Also the air intake and duct could take the 414 with little modifications, for the EJ200 there would, probably, been more modifications neccesary.
The 414 were shoehorned in the the demo with little fuss, so to speak, add a slightly larger air intake and that was it.
There were other details as to why that engine was choosen of course, but thats one of them.
my 3 cent