The Iliad and the Odyssey were both attributed to Homer in ancient times  But these two poems differ greatly in tone and vocabulary and in certain details of the fictional world they depict
So they are almost certainly not the work of the same poet
Several hymns that were also attributed to Homer in ancient times differ more from the Iliad in the respects mentioned than does the Odyssey.