Explosions only damage certain blocks

I am making a minigame where I need explosions to not damage the map but still do damage and break certain blocks. Basically if the tnt were to go off in the image it should break the cobblestone and the oak planks but not hurt any other blocks. How would i make the explosion do this?
Continue to help post