Carlos Brathwaite did that at the world cup(!) game I went to: WIndies were 9 down and needed something like 30 off the last 2 overs. He smashed 3 sixes in a row, reached his century, and they needed 6 to win in the last over +1 ball.
He obviously had to hit a 6 rather than taking the easy single, but holed out to the longest part of the ground. Was absolutely devastated.