It definitely could be the master cylinder. You might try bench bleeding it before you replace it, but I have gotten a new m/c that had a bad seal that acted the same way.
I like m/c I got from DoctorDiff
Mopar Aluminum Master Cylinder Kit
I run the 15/16” version, looks like it might be out of stock. They standard 1 1/32 is available.