Visual Studio 2022 can connect to localdb but SSMS 18.10 can't

From the SSMS connection dialog, click the Options button in the lower right corner to expand the connection options. Ensure that Encrypt Connection is not checked.

enter image description here