Assume $A+B \mid A^5$ and $A+B \mid B^5$, while all the variables are integers expect zero.
Can we prove that $A=B$?
This is my idea of the proof:
For every prime $p$ that $p\mid A+B$ there is $p \mid A$ and $p \mid B$.
Let $\gcd(A,B)=P$, so $A=Pw$ and $B=Pv$ such that $w$ and $v$ have no common factors with $P$. Then if $q\ne 1$, such that $q$ and $P$ are coprime, and $q\mid A+B$ then $q\mid w+v$, and hence $q$ divides both $A$ and $B$, and this is not possible.
Hence $A=P$ and $B=P$.
In this proof, I did not use the exponent $5$ at all. So I feel there is something wrong with the proof. Is there any thoerem that can be used here?
As mentioned there are easy counterexamples. We can characterize the solutions as follows. By the gcd Universal Property & Freshman's Dream we have
$\begin{align} A+B\mid A^5,B^5\!\iff\! A+B&\mid (A^5,B^5)=(A,B)^5\\[.2em] \iff a\ +\ b&\mid\, c^4\ \ \text{by dividing prior by }\,c := (A,B), \ {\rm with }\,\ a,b = \frac{A}c,\frac{B}c \end{align}$
So let $\,c\,$ and coprime $\,a,b\,$ be solutions of $\,a+b = c^4.\,$ Then $\,A\!+\!B\mid A^5,B^5$ for $\,A,B = ac,bc$.
e.g. let's view the first counterexample in the comments this way
$$\begin{align} 1+2&\mid 3^4\\[.2em] \iff\ 3+6&\mid 3^5 = (3,6)^5 = (3^6,6^5)\\[.2em] \iff\ 3+6&\mid 3^5,6^5\\[.3em] \text{for a bigger example }\ \ \ 40\ +\ 41\ &\mid\ 3^4\\[.2em] \iff\ 120+123&\mid 120^5, 123^5 \end{align}\qquad\qquad\qquad\qquad\quad $$