You mention "interesting and challenging work" - but which one is more meaningful for you? Which one will let you deliver the impact which is most inline with your values and principles? Compensation-wise "A" edges out "B", but which one will you be more excited to get out of bed for each morning?