Unfortunately, I don't think either is particularly great. LibreOffice looks horrendous, performs at or below average, and does not have fabulous compatibility with Microsoft Office formats. On the other hand, ONLYOFFICE has better compatibility but feels cheap and pushes web services.
If this is for personal use, I would go with LibreOffice. If you need to share documents with others using a common format, go with ONLYOFFICE.