The lesson from Franz Kafka's quote is to choose ethical principles over societal acceptance. By doing what is right, individuals can foster credibility and long-term respect, while navigating the challenges of conformity in today's society.