Flan-PaLM 540B (Google) and GPT-3.5 (davinci-002) (OpenAI) are both frontier AI models. Flan-PaLM 540B was published in October 2022 and GPT-3.5 (davinci-002) in March 2022.
GPT-3.5 (davinci-002) was trained on 2.6×10²⁴ FLOP, essentially the same compute as Flan-PaLM 540B at 2.5×10²⁴ FLOP. Training compute is the closest available proxy for how much was invested in a model, though it says nothing on its own about how well that compute was spent.
These two models share no benchmark on which both have been scored, so no direct performance comparison is possible here. The specification table below is a comparison of inputs, not of results.