In order to detect the presence of melanoma cells in two cells under the condition of cell photoacoustic wave interference, this paper conducted a finite element analysis of the photoacoustic wave interference field of two cells. First, the wavelength corresponding to the dominant frequency of the signal from a single red blood cell (mean diameter) was calculated. Then, the distance between two identical red blood cells (mean diameter) was set as a multiple of the wavelength to identify the optimal interference distance and the position of the enhanced zone detection point. Next, under the optimal distance, the signal curves of two cells as red blood cells and when melanoma cells exist in two cells were calculated in sequence. Finally, the frequency domain sound pressure level curve of the detection point under the two states was compared with the single-cell signal to obtain the Frechet distance. The results show that when both cells are red blood cells, the Frechet value is less than 48; when melanoma cells exist in both cells, the Frechet value is greater than 52. This study shows that the presence of melanoma cells in two cells can be determined by adjusting the distance between the cells, arranging the positions of the detection points, and employing the Frechet distance metric curve difference under the condition that the two-cell photoacoustic waves interfere with each other.