I have a marble vanity that needs to be trimmed off
That toilet should be able to be removed without disturbing the shelf return on the vanity top. Generally speaking the toilet only needs to lift about two inches to clear the hold down bolts. There is more than enough space below the shelf for that......and just in case it was not you can remove the tank cover to gain an additional 1.5 inches or so.