Really? Either way you lose your job, but one way you built a great product that couldn't get noticed, while the other way you are considered to have failed at building the product.
It's the same old story: OS/2 was superior to DOS, Netscape was better than IE, Dreamcast was amazing, Amiga was ahead of its time, etc.
It's not just software. Shakespeare wasn't a popular playwright in his time, but now he's considered an icon. Were his plays therefore not great because, at the time they were written, no one wanted them?
Many good things are not popular or well-known. They are no less good.