hmmmm...
In the paint can, the lid would give first and the greatest release of pressure would be upward. This, in turn, would cause and equal and opposite reaction downward, breaking the 2x4.
With a watermelon, there would more likely be less directed pressure so what was underneath might not receive the same force.
Maybe?