The fare difference you can justify
Add the rail journey back to Tokyo, local transport, a possible airport hotel and the hours of sightseeing you would give up. Compare those with the fare difference for flying in to Tokyo and out of Kansai. Use the same baggage allowance and passenger count when comparing prices.
Compare the ticket structure too
Check a multi-city fare and two individual one-way fares for the chosen dates. Look at change terms and realistic last-night transport. A daytime gap spent sightseeing between cities is different from a tight connection on independently booked flights, which deserves extra time and a separate contingency.