Thanos and Thor have a long history with each other. Thor is one of the few characters in the Marvel Universe who can actually fight Thanos somewhat successfully, although Thanos has wiped the ...
There is precedent for this to happen from the 2015 Secret Wars comic book story, where Doom ends up ripping out Thanos' skeleton, and seeing that happen on the big screen would certainly stun fans.