Since Indev, primed TNT can no longer be defused by punching it, even if you're the player who detonated the TNT. However, this is likely unintentional and due to a code rewrite - specifically, the "item entity" code being rewritten from around Indev 20091223-1 to Indev 20100105 (this is why primed TNT, dropped items, and arrows did not initially work during Indev, as at the time they were examples of item entities.)
Here is an example of the intended behaviour which should occur after primed TNT is punched by the player who detonated it (the primed TNT should not be able to be defused by any player other than the player who detonated it). As shown in the screenshot, the primed TNT should disappear and a TNT item should drop. This screenshot was taken in version Classic 0.30, the last version of Minecraft: Java Edition to include the intended behaviour before the rewrite of the item entity code in Indev.
[media]
I think this'd be better as a gamerule than a bugfix