You can enable only allowed content type (without subtype inheritance) by using NSOpenSavePanelDelegate - https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1535200-panel:
func panel(_ sender: Any, shouldEnable url: URL) -> Bool {
guard let fileType = UTType(filenameExtension: url.pathExtension) else {
return true
}
return panel.allowedContentTypes.contains(fileType)
}