I know of a ton of startups that were successful after pivoting to a completely different idea, such as Twitter and Reddit. Many companies don't start with a great idea, but they discover opportunities while trying to solve something completely different.