Mexico's GDP as of 2020 was $1.07 trillion; whereas Spain's was $1.28 trillion, making Spain, in that sense, richer than Mexico.