A moral duty is more important than an immoral obligation