Bad-good axis
The question of whether something is good or bad depends entirely upon the criteria by which one evaluates "goodness" (or "right") and "badness" (or "wrong"). The study of these criteria is called ethics; different systems of criteria are called moral systems.
Issues can only be resolved by evaluation of the relative goodness or badness (costs vs. benefits) of each of the alternatives, so that a decision can be reached which will bring the most net good (i.e. [total amount of good] minus [total amount of bad]).
In practice, of course, there are uncertainties and multiple goals (or moral values) which usually make it very difficult to come up with one final "net goodness" value for each possibility so that they can be objectively evaluated against each other.