It's your BIOS/UEFI configuration decides which physical device to boot from. So you don't have to unplug drives for installation or later. To switch between systems simply choose in BIOS/UEFI setup whether to boot from ssd or hdd.
That said, you might want to unplug hdd with Windows for Ubuntu installation if you don't want Grub menu to have an entry to boot Windows, though I see no harm in this.
UPD: as pointed out in comments, Ubuntu installer ATM has a bug forcing Grub to be installed to whatever drive seen as /dev/sda. You can reinstall it later with grub-install
command, but still you end up with excess Grub on sda. If it annoys you, you indeed can unplug the second drive for Ubuntu installation, and don't forget to add yourself to the bugreport.
sudo update-grub
. But grub only boots Windows installed in same boot mode, so both must be UEFI or both must be BIOS. And how you boot install media UEFI or BIOS is how it installs for both Windows & Ubuntu. And if Windows 8 or 10 it cannot have fast boot on or be hibernated. http://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation – oldfred Jun 06 '17 at 19:31