I would need more information about what you intend to do. But, essentially the two different OS are not an issue because you shouldn't install that drive into the Latitude with its existing Windows 11 installation and expect it to work. You need to either transfer (via image backup and restore) the Latitude's current Windows 10 installation to the Inspiron's drive after it's installed in the Latitude, or perform a clean install of Windows 10 to the Inspiron's drive after it's installed in the Latitude. All of that is if it is intended to be the new OS drive. If it's just to be a second drive as storage, then again the different OS aren't an issue. First, if you have files on that drive that you need, connect it to an external drive interface or enclosure and backup your files, perhaps to an external drive. If you intend that drive to function as a second drive in the Latitude, for storage and not as the boot drive, then while it's in the interface you can format it and then install it as a storage drive. If you intend that drive to function as the new boot drive in the Latitude (with an active Windows installation), then you have choices. You can backup the Latitude's existing boot drive, creating a full disk image to an external drive using something like Acronis or Macrium Reflect. Then remove that drive, install the new drive into the Latitude, and restore the backup image to the drive. After a successful restore of the disk image, the new drive will be able to boot. Or, you could use Microsoft Media Creation Tool to create a Windows 10 installer on a flash drive, install the drive into the boot position in the Latitude, boot from the installer flash drive and perform a clean install of Windows 10. If the drive will become the boot drive (OS drive) in the Latitude and if you will use the Latitude's existing drive as a storage drive in the Latitude, you must remove that existing drive before trying to boot from the Inspiron's drive. Trying to boot from a new Windows installation on the Inspiron's drive (created either via restoring an image backup as I described or via a clean install) while another Windows OS drive is in the laptop will result in failure and render at least one of the drives unbootable until you repair Windows. When you first boot to the new installation, there must be only that one Windows drive in the Latitude. After it succesfully boots, you can then reinstall the Latitude's old drive if you want to use it for storage.
My Inspiron 5515 got trashed, but the ssd is still good. I picked up a cheap used Latitude e7320. Is it possible to take the ssd from my Inspiron and put it into the Latitude?
Inspiron/Latitude ssd swap?