Merge images with only specified pixels

Hello everyone
I couldn’t find anything related to the task I’m trying to do.
For example, I want to add only the pixels that are pink color in the image with another image.
How can I combine two images and only use specific pixels?