If you’re tasked with building something, build it properly the first time. New projects often require some exploratory development to become comfortable with a new platform. As soon as your done, start over when it’s time to build the real thing.
There’s absolutely no other excuse to prototype with real code. Use static pages or any other model representation of your project. Anything but code.
You should be treating every project like a production project. If you lower your standards in a prototype, you’ve already lost. They always end up in production, with just one more change request.