%1000 this. If you cannot take the animal and take care of it from day one until it passes away. Do not have pets. Period. It’s not an object, but a living breathing creature that sees you as it’s family. Rehoming them or giving them away because you got bored or didn’t want to figure out how to move with them is not ok. I have two dogs that someone decided would be ok to give back (I foster and do rescue) and no one else wanted them. It took nearly a year for their anxiety to go away and for them to not get anxious when I had to step out for more than a few hours. Cats are easier but they still will have separation anxiety and it can cause a whole slew of issues health wise.
You get an animal. You keep it. You’d not give away your kids. So you don’t do that shit to pets.