In the second case, notice that the sphere is uniformly charged i.e. there is a volume charge present in the medium. But in conductors that certainly cannot be the case. All charges must reside on the outer surface of a conductor. So this is not about a conductor. Potential inside a conductor is unambiguously constant.
To prove that you must understand that electric field inside a conductor is zero. (By inside I mean, in the meat of the conductor, where there is material, not in some cavity.) So, if there was a varying potential inside the conductor, then there would have been a change in potential with distance, creating a gradient in the potential. Now the negative gradient of potential is nothing but electric field, which turns out to be non-zero in case of varying potential. But as mentioned previously, electric field inside a conductor is zero. So our initial assumption must be false. i.e. potential inside a conductor cannot vary.
For further reading study Electrodynamics by David J. Griffiths.