Do not build with gcc12 in master slots
Gaudi is about to drop compatibility with gcc12 and there are already MRs that do not work with just C++17.
Removing gcc12 from slots that use the latest version of Gaudi is a prerequisite to unblock progress on Gaudi v39.
Note that this implies upgrading from gcc12+cuda12_1 to gcc13+cuda12_4.