If someone bathes after the Friday prayer but before sunset, Hasan ibn Ziyad may regard the day-based Sunnah as attained. Abu Yusuf does not regard the prayer-related Sunnah as fulfilled because the prayer has passed.
The dispute concerns timing and purpose, not the general virtue of bathing.