The problem with using an N-ch MOSFET is current sensing; it'll have to be on the high side, and common comparators like the LM311, LM393, LM339 can't "see" within about 1.5v of Vcc, although they can sense right down to ground.
Rail-to-rail and "over the top" comparators are available, but are much more expensive. Also, obsolescence and package types becomes problematic for hobbyists.
Rail-to-rail and "over the top" comparators are available, but are much more expensive. Also, obsolescence and package types becomes problematic for hobbyists.