My godmother recently reminded me how important it is to "not throw the good out with the perfect." While this nugget may sound familiar, even self-evident I think it's actually different than "nobody's perfect," or "you don't have to be perfect." In the latter pair, the emphasis is on perfection, painting it as some ephemeral concept the pursuit of which may cause suffering.
The former, however, places our focus on the good, on what is real and what already exists in our lives. From here, we can then access gratitude.