Product should make sure to create an MVP aka the fastest solution for A-B.
Code should be done right no matter what, you’re being paid as an expert to do that, if they would want whatever crappy code gets it done they would do it themselves with some nocode solution and test the hypothesis.