DISM - "optional feature" vs "capability" vs "package"

From my encounters with DISM in PowerShell, it seems that it deals with 3 different types of “features” (packages). When I first explored them, I couldn’t figure out the difference, so I did some testing and came to the following:

Optional feature

Capability

Package