Comparing two fortran compilers such as gfortran and ifort can be a difficult and subjective decision. Each compiler has its own merits and drawbacks, and it is often difficult to say one is necessarily better than the other.
One way to decide which compiler to use is to consider the type of application you are writing. Ifort is often viewed as the "industry-standard" fortran compiler, particularly for applications that are CPU bound or for when you need to squeeze every bit of performance out of your code. It is especially great for writing large applications and for those codes which make extensive use of overlapping language features like OpenMP, MKL, and Vector intrinsics. Gfortran, on the other hand, is more suitable when portability and compatibility are important. It has a wider range of implementations across platforms and is better supported when you need to cross-compile applications.
In the end, deciding between gfortran and ifort really comes down to what type of application you are writing and which compiler is best suited for your project. Consider carefully which features you need and which compiler supports them best, and you should be able to make the best choice for your use case.