> Given GLM 4.7 seems like it could be competitive with Sonnet 4/4.5
Not for code. The quality is so low, it's roughly on par with Sonnet 3.5