This afternoon I experienced the following: while driving home through busy traffic I passed under a railway bridge, at which point traffic from another lane attempted to filter into mine. I had the opportunity to wait, and allow a car to filter in. However, I kept driving, and the car behind me waited, allowing the other driver into the main lane. Then I began wondering about whether providing someone else with the opportunity to perform a 'good' act (good here understood as referring to an act that is arguably beneficial to at least one other person, and does not cause harm to anyone) is itself a good act.
Put more generally (and in the form of a question), if in performing an act that is detrimental to another we allow a third person the opportunity to perform a beneficial act where they would not otherwise have been able, can our first act be seen in a more positive light, or is still to be considered negatively?