Competition between delta isobars and hyperons and properties of compact stars