default or selected kernelversion does not have config value CONFIG_IP_TCPDIAG.
Result is shown for kernelversion 5.4.123

IP: TCP socket monitoring interface

modulename: tcp_diag.ko

configname: CONFIG_IP_TCPDIAG

Linux Kernel Configuration
└─>Networking support
└─>Networking options
└─>IP: TCP socket monitoring interface
In linux kernel since version 2.6.12  
Support for TCP socket monitoring interface used by native Linux
tools such as ss. ss is included in iproute2, currently downloadable
at <http://developer.osdl.org/dev/iproute2>. If you want IPv6 support
and have selected IPv6 as a module, you need to build this as a
module too.

If unsure, say Y.

source code: