Measurement of differential cross sections for inclusive isolated-photon and photon+jet production in proton-proton collisions at $\sqrt{s} =$ 13 TeV