Suppose we have a nucleus with $n$ neutrons and $p$ protons - I'll write this as $np$. In $\beta^{+}$ decay a proton decays into a neutron, a positron and a neutrino, while in electron capture a proton absorbs an electron to produce a neutron and neutrino. So the two processes are:
$$\begin{align}
np &\rightarrow (n+1)(p-1) + \bar{e} + \nu \\
np + e &\rightarrow (n+1)(p-1) + \nu
\end{align}$$
Although in both cases we end up with the same nucleus, $(n+1)(p-1)$, in $\beta^{+}$ decay overall we lose an electron while in electron capture overall we gain an electron. If the mass of the nucleus is the sum of the proton and neutron masses then this implies the extra neutron created must have a different mass in the two cases.
However the mass of the nucleus is not the sum of the proton and neutron masses - it is the sum of the proton and neutron masses minus the binding energy.
If you take a nucleus and add up the masses of the protons and neutrons in it the total mass you get is always greater than the mass of the nucleus. This is known as the mass defect. The difference is due to the binding energy of the nucleus.
The point is that while the two processes described above would give nuclei with different masses, the difference would be due to a difference in the binding energy not a difference in the neutron mass.