It won't pass final inspection as a single dwelling if it has 2 kitchens. You'd have to have a wetbar then add appliances (illegally later) if you wanted to avoid that. Then you have the fire rating issue as they won't be legally separated. So if you rent them out separately (or live in half and rent the other half) and have a fire (for example) your insurance will not cover you.
Be sure to do it right otherwise you are asking for trouble.