Nothing is wasted here and the greatest of tragedy works to your advantage in the end. You know this as conventional wisdom as well. It is much the same as developing calluses so you can do rough work with your hands without injury. The same is true spiritually, in taking on the darkness. If you succeed in prevailing, the learning you gain will stand for all of time and prepare you to take on any challenge in the future.