I haven't kept a GG, but lots of people have, so I'll repeat some of their opinions plus add some metrics.
First, post a picture so people can identify which GG you mean as that will help to some extent. That will certainly help modify my general points below, again, to an extent.
Second, there is no advice people can give you that will be meaningful to you unless you tell us your long term plans. A tank with one fish that might work for 2 years, could be a horrible choice if you intend the tank to last for the life of the fish, or if you insist on adding more fish. Many people who want these fish are prepared to upgrade. From your OP, you aren't.
Third, unless you share with us your commitment to the tank and it's water quality, it's again pointless to ask for advice. Getting a monster fish is far easier than keeping one properly. E.g., a monster fish owner that is only willing to do one 30-40% water change a week will be better served with a 500 gallon tank, rather than a 180 gallon tank, assuming the exact same stock. So we need to know which hobbyist you are: the one who will do changes as needed, or the one who that will do them provided it's convenient.
Fourth, there are many physical and logistical reasons why a 42" wide tank that is also 24" tall will not work. Reaching in and working inside the tank will be far more difficult than any standard 240 or 300 gallon tank.
So, having said that, my opinion is that this tank will likely not last for the life of the GG. This has nothing to do with the dimensions, but the ultimate mass of the fish, as whether it is finally 20", 22" or 24", the demands on the owner will be extensive. I project nitrates will be 20+ ppm per day, meaning water changes of 75-90% every other day would be the norm.
A fish that size, in a tank that small, will force the owner to forego any other fish of any significant size (e.g., over 5"), due to even larger amounts of nitrates, (although aggression and killings may prove to be more of a problem.) The high nitrates will lower appetite, reduce immune systems and reduce their health.
GGs are long living fish, so intentionally placing them in those conditions isn't something I'd choose to do.
Unless you are seriously prepared to do massive and almost daily water changes and to reduce the tank population to one large fish (with perhaps several relatively small fish), or to upgrade the tank to something like 300+ gallons, I'd make other choices.
There are certainly dozens and dozens of other species that will be more appropriate in that tank, and even more that would be better served with a less wide and less tall tank, if you have space limitations.