My friend, considering the improvements the falcon has been through, it is not weird that it can compete with the rafale. the only major eagle improvement was only in radar. falcon has changed 2 different engines in 5 to 6 variants, 2 different air inlets, 3 radars etc. If the eagle had been through similar changes, the gap between the -22 would have been smaller.
If you neglect the stealth thing, an eagle with f-22 goodies could be marvelous. the lighter eagle needs less thrust to achieve the same t/w, so the engines could be smaller. Electronics can be put everywhere, fuel wise the eagle has the same fuel fraction, aerodynamically especially in subsonic is better, supersonically is inferior.
MICA cost much more than AMRAAM, but it is considered better, so as with the -22 against the -15, one should have the MICA.