It is not really a prisoners' dilemma. Who is the other prisoner?
You and I are both prisoners.
A prisoner’s dilemma doesn’t require actual prisoners; it was the first example of this type of problem, which is why the name is used for all sorts of problems with the same characteristics; namely, that there is some optimal outcome for everyone that could be reached if everyone chose a particular decision, but their is always an individual incentive to ‘defect’ and choose the other option.
I too usually interpret "tragedy of the commons" as "everyone does the thing even though everyone would be better of if no one did the thing"