How similar are Ed Sheeran and Marvin Gaye's songs?

Ed Sheeran has been found not liable for copyright infringement. The British singer-songwriter denied all along that his song 'Thinking Out Loud' copied Marvin Gaye's song 'Let's Get it On'.

The BBC's Mark Savage broke down the differences between both hit tracks.