It seems to me that if you or I must choose between two courses of thought or action, we should remember our dying and try so to live that our death brings no pleasure to the world.
Vanity and pride are different things, though the words are often used synonymously.