The published technical specs on that printer are what I’d consider poor or incomplete. Or it's just not a very capable printer.
The printer appears to lack AirPrint. (Neither the tech specs nor the user guide mention AirPrint.) That omission is a problem for Apple users. It means you’re entirely dependent on vendor drivers. And in this case, the vendor drivers do not mention Apple platforms.
It might work with the generic drivers present in macOS, or it might mean the published info is just woefully incomplete, but given the published tech specs, all that’s unclear. I don’t see IPP/IPPS listed in the tech specs, for instance. IPP/IPPS is a common printing protocol. I don’t even see HP PCL or the raw port listed.
Based on a quick look, I would not recommend this HP printer for use with Apple platforms. Given what’s (not) included in the tech specs, I probably wouldn’t recommend it for Windows or Linux, either.
Some background on the selection: Which Printer Should I Buy? - Apple Community
Brother (non-subscription) models with AirPrint are the local preference.
Whatever printer you pick, get one with AirPrint support.