A compound of Formula I: or a deuterated analog, pharmaceutically acceptable salt, solvate, stereoisomer, or mixture of stereoisomers thereof; wherein: ring B is a heterocycloalkyl ring optionally having 1 to 3 additional heteroatoms selected from O, N, and S; X is CH or N; (i) Z is N and Y is -CH(R 1)- or -CH 2 -; or (ii) Z-Y is -C=C(R 1)- or -C=C -; L is C 1-3 alkylene optionally substituted with C 1 - 4 alkoxy; each R 1 is independently C 1 - 4 alkyl, halo-C 1 - 4 alkyl, C 1 - 4 alkoxy, halo-C 1 - 4 alkoxy, or C 3-6 cycloalkyl; or two R 1, together with the carbon atoms to which they are attached, join to form a cycloalkyl ring; each R 2 is independently selected from hydroxy, halo, C 1 - 4 alkyl optionally substituted with C 1 - 4 alkoxy, halo-C 1 - 4 alkyl optionally substituted with C 1 - 4 alkoxy, C 1 - 4 alkoxy optionally substituted with cycloalkyl, halo-C 1 - 4 alkoxy, C 3-6 cycloalkyl, and C 3-6 cycloalkoxy; or two R 2, when present on the same carbon atom, join to form oxo; or two R 2, together with the carbon atoms to which they are attached, join to form a ring optionally substituted with 1 to 3 halo; R 3 is H or C 1 - 6 alkyl optionally substituted with -N(R 8)(R 9), C 1 - 4 alkoxy, or C 3-6 cycloalkyl; R 4 is H or halo; R 5 is an aryl or heteroaryl ring, each of which is optionally substituted with 1 to 3 R 6; each R 6 is independently halo, C 1 - 6 alkyl, halo-C 1 - 6 alkyl, or -OR 7; each R 7 is independently selected from heterocycloalkyl and C 1 - 6 alkyl optionally substituted with C 1 - 4 alkoxy or halo; R 8 and R 9 are each independently selected from H and C 1 - 6 alkyl; p is 0, 1, 2, or 3; and m is 0, 1, 2, or 3. or a deuterated analog, pharmaceutically acceptable salt, solvate, stereoisomer, or mixture of stereoisomers thereof; wherein: ring B is a heterocycloalkyl ring optionally having 1 to 3 additional heteroatoms selected from O, N, and S; X is CH or N; (i) Z is N and Y is -CH(R 1)- or -CH 2 -; or (ii) Z-Y is -C=C(R 1)- or -C=C -; L is C 1-3 alkylene optionally substituted with C 1 - 4 alkoxy; each R 1 is independently C 1 - 4 alkyl, halo-C 1 - 4 alkyl, C 1 - 4 alkoxy, halo-C 1 - 4 alkoxy, or C 3-6 cycloalkyl; or two R 1, together with the carbon atoms to which they are attached, join to form a cycloalkyl ring; each R 2 is independently selected from hydroxy, halo, C 1 - 4 alkyl optionally substituted with C 1 - 4 alkoxy, halo-C 1 - 4 alkyl optionally substituted with C 1 - 4 alkoxy, C 1 - 4 alkoxy optionally substituted with cycloalkyl, halo-C 1 - 4 alkoxy, C 3-6 cycloalkyl, and C 3-6 cycloalkoxy; or two R 2, when present on the same carbon atom, join to form oxo; or two R 2, together with the carbon atoms to which they are attached, join to form a ring optionally substituted with 1 to 3 halo; R 3 is H or C 1 - 6 alkyl optionally substituted with -N(R 8)(R 9), C 1 - 4 alkoxy, or C 3-6 cycloalkyl; R 4 is H or halo; R 5 is an aryl or heteroaryl ring, each of which is optionally substituted with 1 to 3 R 6; each R 6 is independently halo, C 1 - 6 alkyl, halo-C 1 - 6 alkyl, or -OR 7; each R 7 is independently selected from heterocycloalkyl and C 1 - 6 alkyl optionally substituted with C 1 - 4 alkoxy or halo; R 8 and R 9 are each independently selected from H and C 1 - 6 alkyl; p is 0, 1, 2, or 3; and m is 0, 1, 2, or 3. ring B is a heterocycloalkyl ring optionally having 1 to 3 additional heteroatoms selected from O, N, and S; X is CH or N; (i) Z is N and Y is -CH(R 1)- or -CH 2 -; or (ii) Z-Y is -C=C(R 1)- or -C=C -; (i) Z is N and Y is -CH(R 1)- or -CH 2 -; or (ii) Z-Y is -C=C(R 1)- or -C=C -; L is C 1-3 alkylene optionally substituted with C 1 - 4 alkoxy; each R 1 is independently C 1 - 4 alkyl, halo-C 1 - 4 alkyl, C 1 - 4 alkoxy, halo-C 1 - 4 alkoxy, or C 3-6 cycloalkyl; or two R 1, together with the carbon atoms to which they are attached, join to form a cycloalkyl ring; each R 2 is independently selected from hydroxy, halo, C 1 - 4 alkyl optionally substituted with C 1 - 4 alkoxy, halo-C 1 - 4 alkyl optionally substituted with C 1 - 4 alkoxy, C 1 - 4 alkoxy optionally substituted with cycloalkyl, halo-C 1 - 4 alkoxy, C 3-6 cycloalkyl, and C 3-6 cycloalkoxy; or two R 2, when present on the same carbon atom, join to form oxo; or two R 2, together with the carbon atoms to which they are attached, join to form a ring optionally substituted with 1 to 3 halo; R 3 is H or C 1 - 6 alkyl optionally substituted with -N(R 8)(R 9), C 1 - 4 alkoxy, or C 3-6 cycloalkyl; R 4 is H or halo; R 5 is an aryl or heteroaryl ring, each of which is optionally substituted with 1 to 3 R 6; each R 6 is independently halo, C 1 - 6 alkyl, halo-C 1 - 6 alkyl, or -OR 7; each R 7 is independently selected from heterocycloalkyl and C 1 - 6 alkyl optionally substituted with C 1 - 4 alkoxy or halo; R 8 and R 9 are each independently selected from H and C 1 - 6 alkyl; p is 0, 1, 2, or 3; and m is 0, 1, 2, or 3.