Entrusting our speech to multiple different corporate actors is always risky. Yet given how most of the internet is currently structured, our online expression largely depends on a set of private companies ranging from our direct Internet service providers and platforms, to upstream ISPs (sometimes...
Those aren’t really good equivalents since in the first example, you’re trying to take something away from someone but you fail. The law is not concerned with your skill, just your intent. Attempted murder is illegal even if the victim is still alive.
In the second example, there is absolutely a loss. The barber would have spent time and used resources in order to provide you with that service that they wouldn’t get compensated for. Your involvement directly costs them money and time, unlike with piracy where even a billion people pirating won’t cost the developer any more money than if those people just never played it to begin with.