Similar, yes, but not necessarily interchangeable.
Bummer is much more casual.
If your neighbour's dog died, you'd say, "What a pity, he was such a nice dog." Saying bummer in that instance is too casual.
If you had tickets to a game, but it rained and the game was cancelled, then a friend saying "That's a bummer" is very appropriate.




