(Preface: The below answer was initially written before WOTC's acquisition of D&D Beyond on 2022-04-13. I assume the acquisition would not make my conclusion of 'treat the digital sourcebooks as official' less valid.)
I believe at least the digital versions of the sourcebooks themselves (currently listed here) should be treated as an official rules source roughly on par with the books.
Firstly, WOTC considers D&D Beyond to be an official digital toolset for the game (though, until the acquisition, D&D Beyond wasn't made by WOTC directly, but licensed through them):
This morning, Curse launched D&D Beyond—an official digital toolset for Dungeons & Dragons fifth edition.
(dnd.wizards.com, 2017-08-15)
Secondly, the books on D&D Beyond are considered to be 'digital sourcebooks', which, on their own site, are defined thusly:
A digital sourcebook is a completely digital version of one of the published books, such as the Player's Handbook or adventures like Curse of Strahd. You will get the book re-created in digital format, as well as unlock all of that book's content for use throughout the toolset - both for current tools and anything on the roadmap (such as encounter building/ combat tracking, etc.).
As they are considered a 'completely digital version of one of the published books', I'd say they're as official-source-worthy as said books.
In addition, BadEye (Adam Bradford, D&D Beyond product lead at Curse at the time of posting) also calls D&DB an official source, mentioning that their site is meant to be kept up to date with the rules as new changes come in:
Errata will be incorporated as it comes in. As an official source, it's important that we always stay current.
Ultimately, due to the above, I feel D&D Beyond's version of the sourcebooks should be considered as official as the books themselves. If there's a discrepancy between their content and the most recent errata/printed version of a book, then the book (plus relevant errata) is the 'most canonical', sure, but I don't think the potential for that kind of mismatch/data entry/out of date error would make the rules from the site overall considered 'unofficial'.
Disclaimer: The above only applies to content on D&DB from the official sourcebooks. D&DB also hosts various things that shouldn't be considered official, such as usermade homebrew, forum posts, and unofficial sources such as the Blood Hunter class from Critical Role/Matthew Mercer- these are usually kept separate in the site's navigation. The SRD & Basic Rules are also hosted there in a combined section, but even the WOTC-hosted PDF/printed versions of the SRD is considered unofficial:
The sword of sharpness deals an extra 14 slashing damage when you roll a 20 on its attack roll. The SRD incorrectly says otherwise. Note that the SRD is not an official rules source for D&D. #DnD
@JeremyECrawford, 9:54 PM - 4 Jan 2018
In addition, applicable Unearthed Arcana content was once hosted there (for the UAs released in the range of Jan 8, 2018 to the discontinuation of UA on D&DB around August 2021), which should be treated the same 'officially unofficial' way any other UA content is treated.
While the parts of D&D Beyond that are aggregates of data from the sourcebooks (such as the "Races" section, the "Monsters" section, etc.) contain reproductions of sourcebook data, they seem to be slightly more prone to data entry errors- I'd recommend using the digital sourcebooks' version in the case of finding a conflict between the two.
(On the topic of "what's considered an official sourcebook?", @nitsua60's longstanding question/answer "Where do I find the “official” rules for D&D 5e?" is worth a read as well.)