But so many people use scaling at the OS level which means none of their desktop apps have icons perfectly pixel-aligned anyways. Because even different "lower/normal" DPI screens have significantly different physical pixel sizes and are viewed at different distances, and people choose a setting that makes interface text legible.
The notion of logical (UX measurement) pixel size and physical (monitor) pixel size should just be considered to be totally decoupled at this point. Sure sometimes they perfectly align but as a developer you have zero control as to when that happens.
So it's not worth even trying anymore. Just use hi-res assets designed to still be legible at standard resolution and forget about pixel alignment.
The notion of logical (UX measurement) pixel size and physical (monitor) pixel size should just be considered to be totally decoupled at this point. Sure sometimes they perfectly align but as a developer you have zero control as to when that happens.
So it's not worth even trying anymore. Just use hi-res assets designed to still be legible at standard resolution and forget about pixel alignment.