Neither treatment is universally “better.” They serve different purposes.
A filling may be appropriate when enough strong, healthy tooth structure remains. A crown provides greater coverage and may be recommended when a tooth has lost enough structure that additional protection is needed.
Your dentist can determine which option is appropriate after examining the tooth.