The military is made up from officers and enlisted personnel with the former selected and cultivated for higher personal characteristics. The police otoh while referring to themselves as officers is almost entirely enlisted-class material.
You pretty much need a clean and successful record with a bachelors degree for both paths.
Degree inflation is a real thing, similar to how receptionists in 2020 need a degree in "something" whereas in the old days high school was enough. Boomer generation cops could get hired with a mere high school diploma but that was 50 years ago.
Today, the published requirement to apply to the NYPD is 60 college credits (i.e. a two-year associate's degree). The LAPD only requires high-school graduation.
On the other hand, Army OCS requires a four-year bachelor's degree.