Can we install Ubuntu core 20 and 22 in one hard drive?

I partitioned /dev/sda to /dev/sda1 and /dev/sda2. I want to install Ubuntu Core 20 in /dev/sda1 and Ubuntu Core 22 in /dev/sda2. I use dd command

xzcat /media/ubuntu/ubuntu-core-20-amd64+intel-iot.img.xz |
sudo dd of=/dev/sda1 bs=32M status=progress; sync

It always failed. Who can give some hints?

UbuntuCore images are already partitioned, you can only dd them to a device, not to a partition …

Thanks! Now it is clear.