The models I am familiar with from the past would each work with magazines of either capacity; the 10-shot guns and the 17-shot guns were the exact same model, just packaged and sold with different magazines. I use several old made-during-the-AWB 10-shot mags in competitions in my G17s and G19s, and I also have used the latest/current/Gen4 ambi-notch-cut mags in my older Gen1, Gen2, and Gen3 9mm Glocks, and I've never had a magazine incompatibility issue, as far as I can tell.
Now, I should mention that the info quoted in the first line above is several years old, and I'm not making much effort to keep up with the latest/greatest in the gun world nowadays, so you might want to run that question past a local gun dealer or store in your town. They should know, as it would be hard to legally sell guns in a town with silly laws like that if they DIDN'T know all the details.
Great choice on picking the Glock; good luck!
"Placement is power" -- seen in an article by Stephen A. Camp
(RIP, Mr. Camp; you will be remembered, and missed)