Photometric versus dynamical stellar masses and their impact on scaling relations in nearby disc galaxies