let me also try to answer simply.
In principle inertial mass and gravitational mass are two completely different quantities. Inertial mass is the property of an object to maintain its state of motion, namely its velocity, and it's the mass that appears in Newton's law.
$$
\vec{F} = m_I \vec{a}
$$
On the other hand, gravitational mass appears in the law of gravity
$$
\vec{F}(r) = G\frac{m_GM_G}{r^2}\hat{r}
$$
and it's pretty much the same as charge in Coulomb's law (if we disregard the signs). In principle the two things are different exactly how, for a charged particle, (inertial) mass and charge are different.
Now, being unable to distinguish an accelerated frame from a gravitational field is equivalent to $m_I = m_G$. In fact, let's say we have a group of masses $m^i_G$ in the gravitational field produced by $M_G$ (locally the field has parallel vectors), at some distance R. These masses will "feel" the forces $\vec{F}^i = G\frac{m^i_G M_G}{R^2}\hat{r}^i$.
If $m^i_I = m^i_G$ then every mass will accelerate with acceleration
$$
\vec{a}^i = G\frac{m^i_G M_G}{m^i_I R^2}\hat{r}^i = G\frac{M_G}{R^2} \equiv \vec{g}
$$
which is exactly what we expect to see in an accelerated frame. The reciprocal attractions between the masses would be the same in the two scenarios, therefore if $m_I = m_G$ the accelerated frame and gravitational field are perfectly equivalent and there is no measurement we can perform in order to decide in which scenario we are.