Chevron is an oil and natural gas company, not an electricity production company. Directly producing green energy is a bit like Apple selling Windows PCs.
Kodak was a film company. They made the first digital camera. Theyre dead now.
Failing at green energy might be profitable enough if it drives up costs for other green energy companies.
You assume that Chevron will act rationally. Whether it would be profitable is far from the only question.