Note: This is no longer applicable starting from macOS Big Sur as softwareupdate --ignore has been removed :(
Starting from macOS Mojave, Apple moved the system update functionality from the App Store to the Settings app, but they ‘forgot’ to implement the Hide Update function that existed on the previous version.