Walt should have taken the job Elliott offered
Obviously, if he had taken the job, there would have been no show. But Elliott offered him a consulting job with Gray Matter with benefits. He could have done what he really loved again, not taken charity, probably been in a lot better financial situation, and his family would have remained intact.
I get that his ego got the best of him, but I still see this as his most tragic mistake.