Best method of installing applications on MacOS?

Other than the App Store, what is the recommended way of installing MacOS applications? I know Homebrew and .dmg files are options.

Using the App Store or dragging an app to the Applications folder manually (e.g. from a .dmg) are both less invasive options than Homebrew or installing a .pkg file (which can run arbitrary scripts on your computer).