wikipedia
While Rafale is a 4.5 generation aircraft, China still claims that its J-20 is the 5th generation and has more capabilities to counter Rafale.
However, Retired Air Marshal R Nambiar, who tested the Rafale fighter jets for India, said, “Rafale is far superior to the J-20, the Chengdu fighter of China. Even though it’s believed to be a 5th generation fighter, it is probably at best a 3.5 generation aircraft. It’s got a third-generation engine as we have in the Sukhoi.”
But the Rafale engine is better in terms of reliability, longevity and maintainability, according to reports.