If you enable iCloud for the photo library, and even if you select store originals, I have found that Photos still offloads some pictures. It’s just not guaranteed.
I really wish Apple had a complete export button, similar to google takeout. Or at least a good CLI tool to get the original images one by one.
Fwiw my library is ~200k files and close to a TB.